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

iOS build not working in Xcode #686

Closed
juans-chainsafe opened this issue Oct 25, 2023 · 5 comments
Closed

iOS build not working in Xcode #686

juans-chainsafe opened this issue Oct 25, 2023 · 5 comments
Labels
Type: Bug Added to issues and PRs if they are addressing a bug

Comments

@juans-chainsafe
Copy link
Contributor

Describe the bug
After the build is a success in Unity, and you try to run it in a real iPhone device, you get a build error in Xcode

To Reproduce
Steps to reproduce the behavior:

  1. Switch platform to iOS
  2. Click on Build and Run
  3. Wait for build to finish in Unity
  4. Switch your development profile in Xcode
  5. Start the build in Xcode selecting a real device or simulator

Expected behavior
Application is open correctly in the device

Screenshots
Screenshot 2023-10-25 at 11 43 33

Mobile (please complete the following information):

  • Chainsafe SDK version: [main]
  • Platform: [iOS]
  • Type: [Real device]
  • iOS version [17.0.3]

Additional context

Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758.

Linker command failed with exit code 1 (use -v to see invocation)
@juans-chainsafe juans-chainsafe added the Type: Bug Added to issues and PRs if they are addressing a bug label Oct 25, 2023
@juans-chainsafe
Copy link
Contributor Author

The issue happens with Xcode 15.0.1 version.
The solution is to downgrade the version or, in Xcode, in the Build Settings section, add the flag "-Id64" to Other Linker Flags
Screenshot 2023-10-26 at 10 34 43

@EduardMalkhasyan
Copy link

Am using Unity 2022.3.11 MacOs Sonoma 13, M1, Xcode 15.0.1, In my case when I add "-Id64" first time it works, but after on next build it dosent help at all, so I need every time delete Xcode and reinstall and it will help only for one time ((

@juans-chainsafe
Copy link
Contributor Author

juans-chainsafe commented Nov 1, 2023

Am using Unity 2022.3.11 MacOs Sonoma 13, M1, Xcode 15.0.1, In my case when I add "-Id64" first time it works, but after on next build it dosent help at all, so I need every time delete Xcode and reinstall and it will help only for one time ((

This happened to me, try closing and restarting XCode and add the flag again, not sure why sometimes XCode recognizes the flag and others not.

Also, please try instead of -Id64, use: "-ld_classic" worked for me everytime so far.

@EduardMalkhasyan
Copy link

Am using Unity 2022.3.11 MacOs Sonoma 13, M1, Xcode 15.0.1, In my case when I add "-Id64" first time it works, but after on next build it dosent help at all, so I need every time delete Xcode and reinstall and it will help only for one time ((

This happened to me, try closing and restarting XCode and add the flag again, not sure why sometimes XCode recognizes the flag and others not.

Also, please try instead of -Id64, use: "-ld_classic" worked for me everytime so far.

Ok thank you Sir I will try!

@Clarisse42
Copy link

The issue happens with Xcode 15.0.1 version. The solution is to downgrade the version or, in Xcode, in the Build Settings section, add the flag "-Id64" to Other Linker Flags Screenshot 2023-10-26 at 10 34 43

@juans-chainsafe It work for me, MacOs Sonoma and Xcode 15.0.1 ! Thank you very much 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Added to issues and PRs if they are addressing a bug
Projects
None yet
Development

No branches or pull requests

3 participants