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

Installing pre-release versions through Cocoapods? #1822

Closed

Description

@tomtaylor

It'd be really handy to document the installation procedure for pre-release versions. I'm trying to install it through Cocoapods using the following line:

pod 'MapboxGL', git: 'https://github.com/mapbox/mapbox-gl-native.git'

And it recognises the Podspec (Installing MapboxGL (0.4.4-symbols)), but I get 'MapboxGL/MapboxGL.h' file not found wherever I try to #include it. Am I missing something, or do these releases need to be installed with a different process?

Thanks!

Activity

  1. frenos commented on Jul 2, 2015

    @frenos

    You don't need to do this anymore I think.
    Just use pod MapboxGL and you will get the current v0.4.4.
    Or did I miss your problem?

  2. friedbunny commented on Jul 2, 2015

    @friedbunny
    Contributor

    This will get you the latest (pre-)release on GitHub:

    pod 'MapboxGL', :podspec => 'https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/ios/MapboxGL.podspec'
    

    Note that this doesn't checkout this repo or build anything from source, it uses the latest release from here that may or may not have also been released to CocoaPods' public repo.

  3. tomtaylor commented on Jul 2, 2015

    @tomtaylor
    Author

    @frenos 0.4.4 doesn't seem to be in the published repo. 0.4 works fine.

    @friedbunny thanks, that works, but is there an obvious way of selecting the version without symbols - it just uses whatever it in the version attribute, which is 0.4.4-symbols. I guess one way would be to take a local copy of the file?

  4. tomtaylor commented on Jul 2, 2015

    @tomtaylor
    Author

    OK, so installing with a local Podspec works file. But now I'm getting what I'm guessing is a separate issue:

    Undefined symbols for architecture x86_64:
      "mbgl::Map::fitBounds(std::__1::vector<mbgl::LatLng, std::__1::allocator<mbgl::LatLng> >, mbgl::$_1, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> >)", referenced from:
          -[MGLMapView setVisibleCoordinates:count:edgePadding:animated:] in libMapboxGL.a(MGLMapView.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
  5. friedbunny commented on Jul 3, 2015

    @friedbunny
    Contributor

    @tomtaylor We're looking to enable build-from-source via CocoaPods in #1437, if that's what you're trying to do.

    @incanus may know how to wrangle the podspec to prefer the smaller unsymbolicated release.

  6. incanus commented on Jul 5, 2015

    @incanus
    Contributor

    For interim prereleases:

    1. Create a local MapboxGL.podspec to point to.
    2. Update its version to the appropriate spot.
    3. Choose either x.y.z or x.y.z-symbols accordingly.

    By default, our stable releases (x.y.0) are not symbolicated.

  7. 1ec5 commented on Jul 5, 2015

    @1ec5
    Contributor

    @tomtaylor, that linker error looks like something that might happen if you haven’t make clean’d after upgrading.

  8. incanus commented on Jul 9, 2015

    @incanus
    Contributor

    @tomtaylor if you have any further info on the link error you saw, would you mind elaborating at #1859? I think we're done here, though.

  9. robipresotto commented on Sep 17, 2015

    @robipresotto

    I'm trying to setup the pod file to load from local (to prototype features and fix bugs) but 'm not lucky,

    • My pod file
    pod 'Mapbox-iOS-SDK', :podspec => './Mapbox-iOS-SDK.podspec'
    • My podspec (Mapbox-iOS-SDK.podspec)
    Pod::Spec.new do |s|
    
        s.name    = 'Mapbox-iOS-SDK'
        s.version = '2.1.2'
    
        s.summary          = 'Open source vector map solution for iOS with full styling capabilities.'
        s.description      = 'Open source OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa bindings.'
        s.homepage         = 'https://www.mapbox.com/ios-sdk/'
        s.license          = 'BSD'
        s.author           = { 'Mapbox' => '[email protected]' }
        s.screenshot       = 'https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/ios/screenshot.png'
        s.social_media_url = 'https://twitter.com/mapbox'
        s.documentation_url = 'https://www.mapbox.com/ios-sdk/'
    
        s.source = {
        :path => "/Users/robipresotto/Work/iSea/Mapbox/mapbox-gl-native/build/ios/pkg/static",
        }
    
        s.platform              = :ios
        s.ios.deployment_target = '8.0'
    
        s.requires_arc = true
    
        s.source_files = 'Headers/*.h', 'MGLDummy.m'
        s.resource_bundle = { 'Mapbox' => 'Mapbox.bundle/*' }
        s.vendored_library = 'libMapbox.a'
        s.module_name = 'Mapbox'
    
        s.frameworks = 'CoreLocation', 'CoreTelephony', 'GLKit', 'ImageIO', 'MobileCoreServices', 'QuartzCore', 'SystemConfiguration'
        s.libraries = 'c++', 'sqlite3', 'z'
        s.xcconfig = {
        'OTHER_CPLUSPLUSFLAGS' => '-std=gnu++11 -stdlib=libc++',
        'OTHER_LDFLAGS' => '-ObjC',
        }
    end
    • I got it on my debug, what's missing?
    Downloading dependencies
    
    -> Installing Mapbox-iOS-SDK (2.1.2)
    
    [!] Error installing Mapbox-iOS-SDK
     -> Mapbox-iOS-SDK (2.1.2)
        - ERROR | [iOS] unknown: Encountered an unknown error (Unsupported download strategy `{:path=>"/Users/robipresotto/Work/iSea/Mapbox/mapbox-gl-native/build/ios/pkg/static"}`.) during validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions