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

invalid version number in '-target arm64-apple-ios9999-simulator #3980

Open
lionel-alves opened this issue May 14, 2024 · 20 comments
Open

invalid version number in '-target arm64-apple-ios9999-simulator #3980

lionel-alves opened this issue May 14, 2024 · 20 comments

Comments

@lionel-alves
Copy link

lionel-alves commented May 14, 2024

Platform

iOS

Environment

Develop

Installed

Swift Package Manager

Version

8.26

Did it work on previous versions?

It is after updating to Xcode 15.4

Steps to Reproduce

  1. Add sentry-cocoa dependency using SPM, version 8.26.
  2. Add Sentry static framework
  3. Compile

Expected Result

Should compile without error

Actual Result

clang: error: invalid version number in '-target arm64-apple-ios9999-simulator'

Note

It works with Senty-Dynamic framework.

@philipphofmann
Copy link
Member

philipphofmann commented May 14, 2024

This is related to #3947. You can try the following workaround while we're investigating this, as mentioned in #3947 (comment) or using Xcode 15.3.

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

@matthewreimer
Copy link

matthewreimer commented May 14, 2024

Adding my "me too": with Xcode 15.4 (15F31d) it compiles fine if I target a simulator running 17.5, but if I target a physical iPad running 17.5 I get "invalid version number in '-target arm64-apple-ios9999'". I'm using SentrySwiftUI.

@philipphofmann
Copy link
Member

It's weird, compiling an empty SwiftUI project for both Sentry and Sentry-Dynamic works for me on an M2 MacBook Pro with Xcode 15.4 on macOS 14.4.1 for both running a SwiftUI app on a Simulator with iOS 17.5 and on a real iPhone 12 with iOS 15.4, but when trying to run the app for MacCatalysit I get the same error as mentioned in #3984: invalid version number in '-target arm64-apple-ios10.15-macabi

@philipphofmann
Copy link
Member

@matthewreimer and @lionel-alves, maybe the steps pointed out here help to solve your problem: #3984 (comment).

@fnazarios
Copy link

This is also happening on watchOS app with the same -target arm64-apple-watchos9999-simulator error

@philipphofmann
Copy link
Member

@fnazarios, can you try if the steps explained it #3984 (comment) solve your problem please?

@fnazarios
Copy link

@philipphofmann Unfortunately, it didn't have any effect.

@n8sters
Copy link

n8sters commented May 15, 2024

Similar boat over here. Some devs can build following the steps mentioned in issue 3984, but others cannot. We're also unable to run test targets. Sorry folks, the Xcode update break strikes again. :(

@farmer-dhi
Copy link

This issue is affecting me as well. Tried the fix mentioned here: https://github.com/getsentry/sentry-cocoa/issues/3984#issuecomment-2112246277. It worked on my local machine, but not for the remote Mac Mini that acts as our test server.

@DevKarlKlein
Copy link

Same here, however using Sentry-Dynamic as suggested instead resolved the issue.

@philipphofmann
Copy link
Member

According to Apple staff in the Apple forum this an issue with Xcode, and the recommendation is to stick to Xcode 15.3.

@brustolin
Copy link
Contributor

If you were using Sentry version 8.25.0 or lower and got this error, then updated to version 8.26.0 and still got this error, it is due to some Xcode caching. I had to clean derived data folder and reopen Xcode in order to have it working.

@philipphofmann
Copy link
Member

@brustolin, I already suggested that in #3984 (comment), but it seems not to work for everybody; see #3980 (comment).

@brustolin
Copy link
Contributor

@brustolin, I already suggested that in #3984 (comment), but it seems not to work for everybody; see #3980 (comment).

Strange, I can easily reproduce this.

@n8sters
Copy link

n8sters commented May 17, 2024

If it helps, all 14 of our devs have now been able to run against iOS 17.2 on Xcode 15.4. I'm not knowledgeable enough to know what may be specific about 17.2, but figured I'd share.

@gfpacheco
Copy link

I was on 8.24.0, upgrading to 8.26.0 fixed it for me

@theedov
Copy link

theedov commented May 19, 2024

I was getting this before, when trying to run on a simulator, 8.26.0 fixed it but now I'm getting the same error when trying to load a preview.

Note: It's an iOS app not catalyst.

@munhitsu
Copy link

munhitsu commented May 20, 2024

just tested on 8.26.0 after purging all Xcode related Caches & ~Library/Developer/Xcode/

  • iOS builds fine
  • macOS Catalyst fails

error: clang:1:1 invalid version number in '-target arm64-apple-ios10.15-macabi'

linking with both static Sentry and SentrySwiftUI

Apple clang version 15.0.0 (clang-1500.3.9.4)
Xcode Version 15.4 (15F31d)

@brustolin
Copy link
Contributor

@munhitsu The maccatalist problem is a Xcode bug as explained in this issue

@choulepoka
Copy link

Going back to 8.21.0 seems to fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Blocked
Development

No branches or pull requests