Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry does not build on Xcode 15.4 beta 1 (15F5021i) #3947

Closed
dfed opened this issue May 6, 2024 · 5 comments · Fixed by #3958
Closed

Sentry does not build on Xcode 15.4 beta 1 (15F5021i) #3947

dfed opened this issue May 6, 2024 · 5 comments · Fixed by #3958

Comments

@dfed
Copy link

dfed commented May 6, 2024

Platform

iOS

Environment

Production, Develop, TestFlight

Installed

Swift Package Manager

Version

8.25.0

Did it work on previous versions?

I have not checked

Steps to Reproduce

  1. Integrate Sentry via SPM into an iOS app
  2. Hit build

Expected Result

Sentry builds successfully

Actual Result

Copy /Users/dfed/Library/Developer/Xcode/DerivedData/Portola-cpdibskhsswjjmaarpylxxcqnqfy/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/Sentry.framework /Users/dfed/Library/Developer/Xcode/DerivedData/MyProject-cpdibskhsswjjmaarpylxxcqnqfy/SourcePackages/artifacts/sentry-cocoa/Sentry/Sentry.xcframework/ios-arm64/Sentry.framework (in target 'MyTarget' from project 'MyProject')
    cd /Users/dfed/source/apple
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude \*.tbd -bitcode-strip all -bitcode-strip-tool /Applications/Xcode-15.4.0-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks -remove-static-executable /Users/dfed/Library/Developer/Xcode/DerivedData/Portola-cpdibskhsswjjmaarpylxxcqnqfy/SourcePackages/artifacts/sentry-cocoa/Sentry/Sentry.xcframework/ios-arm64/Sentry.framework /Users/dfed/Library/Developer/Xcode/DerivedData/MyProject-cpdibskhsswjjmaarpylxxcqnqfy/Build/Products/Debug-iphoneos/MyApp.app/Frameworks

note: Injecting stub binary into codeless framework (in target 'MyTarget' from project 'MyProject')
    /Applications/Xcode-15.4.0-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -isysroot /Applications/Xcode-15.4.0-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -dynamiclib -Xlinker -adhoc_codesign -x c /dev/null -o /Users/dfed/Library/Developer/Xcode/DerivedData/MyProject-cpdibskhsswjjmaarpylxxcqnqfy/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/Sentry.framework/Sentry -target arm64-apple-ios9999
clang: error: invalid version number in '-target arm64-apple-ios9999'

Looks like the minimum iOS version of 9999 is invalid. Looking at git history, I believe this broke in #3774. I have not filed a Feedback with Apple

Are you willing to submit a PR?

No response

@philipphofmann
Copy link
Member

@brustolin, I think this is related to #3774. Can you please have a look?

@benrudhart
Copy link

benrudhart commented May 8, 2024

The same is true for Xcode 15.4 RC (15F31c). Does anybody know a workaround?

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 8, 2024
@triplef
Copy link
Contributor

triplef commented May 8, 2024

Same issue here using the latest 8.25.2 SDK release and Xcode 15.4 RC.

@philipphofmann
Copy link
Member

philipphofmann commented May 8, 2024

I can reproduce the issue with Xcode 15.4 RC.

Possible Workarounds

Cocoa SDK version 8.21.0 works both for Sentry and Sentry-Dynamic.

If you can't downgrade to 8.21.0, you can try to use Sentry-Dynamic, as mentioned in #3769 (comment):

CleanShot 2024-05-08 at 12 48 41

@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 May 8, 2024
@brustolin brustolin self-assigned this May 9, 2024
@kahest kahest moved this from Needs Discussion to Needs Review in Mobile & Cross Platform SDK May 10, 2024
@github-project-automation github-project-automation bot moved this from Needs Review to Done in Mobile & Cross Platform SDK May 10, 2024
@kahest
Copy link
Member

kahest commented May 10, 2024

We have a fix ready for this which will ship early next week in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants