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

[Bug]: Unity export to iOS, fail to archive #2699

Closed
Zen12 opened this issue Oct 28, 2021 · 4 comments
Closed

[Bug]: Unity export to iOS, fail to archive #2699

Zen12 opened this issue Oct 28, 2021 · 4 comments
Assignees

Comments

@Zen12
Copy link

Zen12 commented Oct 28, 2021

What happened?

Hi,

Exported to Xcode, and it fail to archive.

Something to do with setting realm-wrappers.framework .

I checked the PlayerSettings for simulator or device. It gives true in 'device' and false on 'simulator'.
Debug.Log(PlayerSettings.iOS.sdkVersion == iOSSdkVersion.DeviceSDK);
Debug.Log(PlayerSettings.iOS.sdkVersion == iOSSdkVersion.SimulatorSDK);

Not sure why it thinks that it's a simulator.

Repro steps

Export To iOS (from Unity) -> In XCode archive.

Version

10.6.0

What SDK flavour are you using?

MongoDB Realm (i.e. Sync, auth, functions)

What type of application is this?

Unity

Client OS and version

macOS

Code snippets

No response

Stacktrace of the exception/crash you're getting

Error from XCode (Archive) 

Unity-iPhone.xcodeproj Building for iOS, but the embedded framework 'realm-wrappers.framework' was built for iOS + iOS Simulator.

Relevant log output

No response

@nirinchev
Copy link
Member

Can you give us some more details about what exactly is going on - error messages or steps to reproduce?

@DominicFrei
Copy link
Contributor

Hi @Zen12,

Thank you for this report. I've just tried to reproduce this but couldn't. My archives end up being successful.

xcode_archive

Can you provide more information about what you are doing?

In comparison, here is my setup:

The game I used to export:
https://github.com/realm/unity-examples-3d-chess/tree/sync-realm

The build and run settings:
unity_build_settings

I did not change anything in Xcode other than signing.

Versions:
Unity 2021.1.13f1
Xcode 13.1
iOS target 11.0
Realm 10.3.0 and 10.6.0

How do you integrate Realm into Unity?
Did you apply any changes other than signing in Xcode?

@DominicFrei DominicFrei added the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Oct 29, 2021
@Zen12
Copy link
Author

Zen12 commented Oct 29, 2021

Yes, sure, I will try to reproduce on a sample project and give detailed steps.

@no-response no-response bot removed the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Oct 29, 2021
@Zen12
Copy link
Author

Zen12 commented Nov 1, 2021

I tested the sample it works OK. I realise that I was using an old version of the plugin (10.2.1). After updating to the new version it works OK.

@Zen12 Zen12 closed this as completed Nov 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants