From 5b67aea7ce76d6441dc0ac0f7986b995858a353f Mon Sep 17 00:00:00 2001 From: millianlmx Date: Fri, 26 Jun 2026 23:07:57 +0000 Subject: [PATCH] fix: update PostHog to 3.62.0 to fix SwiftDriver compilation error - Pin PostHog to 3.62.0 (vendored PLCrashReporter, drops external plcrashreporter dependency that fails with Xcode 26/Swift 6) - Update project.yml and pbxproj minimumVersion - Delete Package.resolved to force clean SPM resolution - Add -resolvePackageDependencies step in CI workflow - Add -skipPackagePluginValidation to build command - Fix docs/ci-cd-setup.md manual build command --- .gitea/workflows/pr-iphone-deploy.yml | 6 ++ docs/ci-cd-setup.md | 8 +- .../TabataGo.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/swiftpm/Package.resolved | 96 ------------------- tabatago-swift/project.yml | 2 +- 5 files changed, 13 insertions(+), 101 deletions(-) delete mode 100644 tabatago-swift/TabataGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/.gitea/workflows/pr-iphone-deploy.yml b/.gitea/workflows/pr-iphone-deploy.yml index 154d529..e3df470 100644 --- a/.gitea/workflows/pr-iphone-deploy.yml +++ b/.gitea/workflows/pr-iphone-deploy.yml @@ -46,6 +46,11 @@ jobs: cd tabatago-swift xcodegen generate + - name: Resolve SPM packages + run: | + cd tabatago-swift + xcodebuild -resolvePackageDependencies -project TabataGo.xcodeproj -scmProvider system + - name: Build app run: | cd tabatago-swift @@ -57,6 +62,7 @@ jobs: -destination "generic/platform=iOS" \ -configuration Debug \ -allowProvisioningUpdates \ + -skipPackagePluginValidation \ CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=2MJF39L8VY - name: Package IPA diff --git a/docs/ci-cd-setup.md b/docs/ci-cd-setup.md index 0c79b10..66fe87d 100644 --- a/docs/ci-cd-setup.md +++ b/docs/ci-cd-setup.md @@ -94,11 +94,13 @@ cd tabatago-swift xcodegen generate xcodebuild build \ -project TabataGo.xcodeproj \ - -scheme TabataGo \ + -target TabataGo \ -sdk iphoneos \ + -destination "generic/platform=iOS" \ -configuration Release \ - CODE_SIGN_STYLE=Automatic \ - -allowProvisioningUpdates + -allowProvisioningUpdates \ + -skipPackagePluginValidation \ + CODE_SIGN_STYLE=Automatic ``` ## 6. Firebase App Distribution Setup diff --git a/tabatago-swift/TabataGo.xcodeproj/project.pbxproj b/tabatago-swift/TabataGo.xcodeproj/project.pbxproj index f9869e6..d05b956 100644 --- a/tabatago-swift/TabataGo.xcodeproj/project.pbxproj +++ b/tabatago-swift/TabataGo.xcodeproj/project.pbxproj @@ -1331,7 +1331,7 @@ repositoryURL = "https://github.com/PostHog/posthog-ios"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 3.0.0; + minimumVersion = 3.62.0; }; }; B502009078E4064243CF221F /* XCRemoteSwiftPackageReference "supabase-swift" */ = { diff --git a/tabatago-swift/TabataGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/tabatago-swift/TabataGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index a31781a..0000000 --- a/tabatago-swift/TabataGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,96 +0,0 @@ -{ - "originHash" : "42d1f35b4500c2779457daf99841f2333a14d9a2965835305d89fd95beda836e", - "pins" : [ - { - "identity" : "plcrashreporter", - "kind" : "remoteSourceControl", - "location" : "https://github.com/microsoft/plcrashreporter.git", - "state" : { - "revision" : "0254f941c646b1ed17b243654723d0f071e990d0", - "version" : "1.12.2" - } - }, - { - "identity" : "posthog-ios", - "kind" : "remoteSourceControl", - "location" : "https://github.com/PostHog/posthog-ios", - "state" : { - "revision" : "c3efdae383a5e7a5a88c34fd774e9d7dc915b9d4", - "version" : "3.55.0" - } - }, - { - "identity" : "purchases-ios", - "kind" : "remoteSourceControl", - "location" : "https://github.com/RevenueCat/purchases-ios", - "state" : { - "revision" : "bd63241b2258ea519020eb32a349db44fb44b119", - "version" : "5.68.0" - } - }, - { - "identity" : "supabase-swift", - "kind" : "remoteSourceControl", - "location" : "https://github.com/supabase/supabase-swift", - "state" : { - "revision" : "17261e93c60aa721e3c17312bfeb2ae6de3d6f8a", - "version" : "2.43.1" - } - }, - { - "identity" : "swift-asn1", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-asn1.git", - "state" : { - "revision" : "eb50cbd14606a9161cbc5d452f18797c90ef0bab", - "version" : "1.7.0" - } - }, - { - "identity" : "swift-clocks", - "kind" : "remoteSourceControl", - "location" : "https://github.com/pointfreeco/swift-clocks", - "state" : { - "revision" : "cc46202b53476d64e824e0b6612da09d84ffde8e", - "version" : "1.0.6" - } - }, - { - "identity" : "swift-concurrency-extras", - "kind" : "remoteSourceControl", - "location" : "https://github.com/pointfreeco/swift-concurrency-extras", - "state" : { - "revision" : "5a3825302b1a0d744183200915a47b508c828e6f", - "version" : "1.3.2" - } - }, - { - "identity" : "swift-crypto", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-crypto.git", - "state" : { - "revision" : "476538ccb827f2dd18efc5de754cc87d77127a47", - "version" : "4.4.0" - } - }, - { - "identity" : "swift-http-types", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-http-types.git", - "state" : { - "revision" : "45eb0224913ea070ec4fba17291b9e7ecf4749ca", - "version" : "1.5.1" - } - }, - { - "identity" : "xctest-dynamic-overlay", - "kind" : "remoteSourceControl", - "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", - "state" : { - "revision" : "dfd70507def84cb5fb821278448a262c6ff2bbad", - "version" : "1.9.0" - } - } - ], - "version" : 3 -} diff --git a/tabatago-swift/project.yml b/tabatago-swift/project.yml index 20d0127..a8ca4d4 100644 --- a/tabatago-swift/project.yml +++ b/tabatago-swift/project.yml @@ -27,7 +27,7 @@ packages: from: "5.0.0" PostHog: url: https://github.com/PostHog/posthog-ios - from: "3.0.0" + from: "3.62.0" targets: TabataGo: