-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unsupported architectures Error When Uploading to iTunes Connect #2352
Comments
I solved the problem using lipo. But can we set the target arch in build command? http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/ |
Hi @strongwillow, how did you install Realm Swift? If you're using the prebuilt binary frameworks, please make sure to add a build phase to your app's main target: |
I am having the same problem -- but in my case the added build phase to call strip-frameworks.sh is failing. Update: Its an order of build script execution issue - one cannot have the strip frameworks anywhere before the the embedded frameworks get copied or the script isn't yet available in the build products directory. Seems like this might be a problem that most people are hitting... probably a good caveat in the instructions about where place this script in the build process. |
@dhmspector In fact I didn't follow exactly what the blog suggested. I only used lipo to extract and combine into one arm architecture library. |
My env: Xcode 7 beta 4, Realm swift-2.0 branch.
It's doing well on both simulator and my devices. However, when I was archiving, Xcode reported:
I think I should do something with strip-frameworks.sh.
What should I do exactly?
Thx!
==== updated Friday=====
This morning I found Xcode had an update to beta 5, so I updated. After fixing some problems coming along, I managed to get the aforementioned problem again.
The text was updated successfully, but these errors were encountered: