Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Building for iOS framework does not generate the podspec file #15377

Closed
long1eu opened this issue Aug 14, 2019 · 6 comments · Fixed by #15402
Closed

Building for iOS framework does not generate the podspec file #15377

long1eu opened this issue Aug 14, 2019 · 6 comments · Fixed by #15402
Labels
documentation iOS Mapbox Maps SDK for iOS

Comments

@long1eu
Copy link

long1eu commented Aug 14, 2019

Building the iOS framework does not generate the podspec file.
'{...}/build/ios/pkg/{dynamic|static}/Mapbox-iOS-SDK.podspec'

The command I used is make iframework BUILDTYPE=Debug

@long1eu long1eu changed the title Building the iOS framework does not generate the podspec file Building for iOS framework does not generate the podspec file Aug 14, 2019
@friedbunny friedbunny added the iOS Mapbox Maps SDK for iOS label Aug 14, 2019
@friedbunny
Copy link
Contributor

We removed the generated local podspec in #15027 as part of improving validation and streamlining the build process. Can you say more about how you used this file?

@long1eu
Copy link
Author

long1eu commented Aug 15, 2019

I agree with your decision, but the readme is not updated.

My issue is about a having symbols when a crash occurs. I only get libc++abi.dylib: terminating with uncaught exception of type std::runtime_error

Screenshot 2019-08-15 at 09 38 54

@friedbunny
Copy link
Contributor

friedbunny commented Aug 15, 2019

Ah, thanks for pointing that out — we’ll update the docs soon.

To use a local build via CocoaPods, one way would be to edit platform/ios/Mapbox-iOS-SDK.podspec and change this:

m.source = {
:http => "https://mapbox.s3.amazonaws.com/mapbox-gl-native/ios/builds/mapbox-ios-sdk-#{m.version.to_s}-dynamic.zip",
:flatten => true
}

... to this:

  m.source = {
    :path => "../../build/ios/pkg/dynamic/",
    :flatten => true
  }

And then point your Podfile to that podspec.

Another way would be to overwrite the CocoaPods-downloaded version with the custom-built Mapbox.framework and .dsym.

@long1eu
Copy link
Author

long1eu commented Aug 16, 2019

Thanks!
One think that I found is that I don't have any .dsym files when I run
make iframework BUILDTYPE=Debug SYMBOLS=true

@friedbunny
Copy link
Contributor

One think that I found is that I don't have any .dsym files [for debug builds]

That’s expected, as the binaries in debug builds should keep all of their symbols (and other unoptimized ephemera) that would otherwise be stripped out into a dSYM for a size- and/or performance-optimized release build.

@long1eu
Copy link
Author

long1eu commented Aug 16, 2019

I think we can close this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants