cutting-room-floor / mapbox-gl-cocoa

OBSOLETE
74 stars 12 forks source link

Potential App Store issue #55

Closed johankool closed 9 years ago

johankool commented 10 years ago

The framework comes with i386 and x86_64 slices, which is totally awesome for running apps in the simulator.

Unfortunately, Apple complains about them when trying to upload a (test) binary to iTunes Connect. I used lipo to remove the i386 and x86_64 slices from MapboxGL.framework/MapboxGL, after which I could successfully upload my app.

I am not quite sure what is the proper solution for this. I am thinking a custom script that does this only for Archive builds? It is btw not specific to the MapboxGL framework, but figured it would be good to be aware off.

incanus commented 10 years ago

Oh wow, weird. Thanks for the heads up. I don't understand why Apple couldn't just strip this themselves. Another option might be to include two binaries in the framework, one device and one sim, and then device builds would only link the device one. This might be possible.

incanus commented 9 years ago

I'm gonna close here for now since this isn't specific to the project and we will do some tests when things are closer to ready for use in apps officially.