liveservices / LiveSDK-for-iOS

LiveSDK library for integrating with Live Connect
MIT License
138 stars 84 forks source link

Unsupported architectures error #43

Closed Gortmann closed 9 years ago

Gortmann commented 9 years ago

I followed your instructions as detailed in the ReadMe to add as a framework, but I am unable to get the project into the App Store with Xcode 6.1. The project works fine in the simulator and devices.

The error says: "iTunes Store operation failed. Unsupported Architectures. Your executable contains unsupported architectures '[x86_64, i386]'."

The error does go away if I remove the Live SDK.

Gortmann commented 9 years ago

This answer from an Apple engineer seems to provide additional information about the issue: https://devforums.apple.com/message/1048562#1048562

aclev commented 9 years ago

To un block you for now, is it possible you follow the steps in ReadMe section 2.2 ? This will include the source in your project so only the architectures you need will be built.

Gortmann commented 9 years ago

I just tried the steps in 2.2 but I'm using ARC. I tried converting just the files from the library using the ARC option from the refactor menu item, but got a lot of errors, warnings, and ultimately a notice saying the conversion was unsuccessful.

Perhaps I am doing something wrong in the conversion, but I am not in a rush to get this into the App Store. What I would appreciate is just a confirmation that I am not the only one seeing this and perhaps a time frame of when it will be addressed.

aclev commented 9 years ago

Try this branch https://github.com/liveservices/LiveSDK-for-iOS/tree/ArcEnabled. You are not the only one seeing this problem. It is unclear when we can get a fix out for this issue. For now this branch should have everything you need to keep working.

Gortmann commented 9 years ago

It shows up as that branch still isn't properly converted. Even if I try the refactor option again I still get errors. Again, I may be doing something wrong. I think I'll wait for this to be fixed. But thanks for confirming the issue.

aclev commented 9 years ago

When you add the files to your project you must add the compiler flag -fno-objc-arc to each file from the LiveSDK. To do this go to the target that the files have been added to -> select Build Phases ->Compile Sources and on the right side of the table you can see the compiler flags section.

Gortmann commented 9 years ago

That worked. Thank you for everything.