Mapbox-gl-native: App Store upload fails

Created on 18 Apr 2016  路  5Comments  路  Source: mapbox/mapbox-gl-native

Platform: iOS
Mapbox SDK version: 3.2

I added the SDK using the dynamic framework package, and added to the project as Embedded Binary.
The SDK works perfectly.
But I encounter this issue when I upload to AppStore,

screen shot 2016-03-30 at 4 54 37 pm

Any idea what I'm doing wrong?

Thanks in advance.

iOS

Most helpful comment

@1ec5 @mozinator Thanks for the help! I tried again with the build phase script, and it worked.

All 5 comments

You forgot the buildphase that strips the mapbox framework from the i386 and x86_64 architecture.
https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md#dynamic-framework

screen shot 2016-04-18 at 13 21 56

Hi @mozinator,
Thanks for the quick reply.
I did indeed add the script, but the project doesn't build and throws me an error like so -

/Users/ramsundar.narayanan/Library/Developer/Xcode/DerivedData/AppName/Build/Intermediates/ArchiveIntermediates/AppName/BuildProductsPath/Release-iphoneos/AppName.app/Frameworks/Mapbox.framework/strip-frameworks.sh: No such file or directory

@Ramshandilya, how did you install the SDK? Manually, or via a package manager like Fabric or CocoaPods? If you installed it manually, which ZIP file did you download from the release page?

I did it manually. Using the mapbox-ios-sdk-3.2.0-dynamic.zip

@1ec5 @mozinator Thanks for the help! I tried again with the build phase script, and it worked.

Was this page helpful?
0 / 5 - 0 ratings