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.

investigate compatibility with CocoaPods 0.38.0 betas #1849

Closed

Description

Activity

  1. added
    iOS
    on Jul 8, 2015
  2. friedbunny commented on Jul 9, 2015

    @friedbunny
    Contributor

    Per #1862 (comment), it appears that -ObjC isn't being added to the "Pods" target's linker flags when using ~0.38.0.

  3. 1ec5 commented on Jul 9, 2015

    @1ec5
    Contributor

    Yes, that’s fallout from CocoaPods/CocoaPods#3537.

  4. self-assigned this
    on Jul 10, 2015
  5. 1ec5 commented on Jul 10, 2015

    @1ec5
    Contributor

    A fix is ready in #1876, but we may not be able to publish the updated spec to CocoaPods for awhile. In the meantime, anyone on CocoaPods 0.38.0 should use this in their Podfile as a temporary workaround:

    pod 'MapboxGL', :podspec => 'https://raw.githubusercontent.com/mapbox/mapbox-gl-native/1ec5-pod-038-1849/ios/MapboxGL.podspec'
    use_frameworks!
  6. added a commit that references this issue on Jul 10, 2015
    97b7307
  7. kylederkacz commented on Aug 6, 2015

    @kylederkacz

    https://raw.githubusercontent.com/mapbox/mapbox-gl-native/1ec5-pod-038-1849/ios/MapboxGL.podspec is 404'ing. Is there a new podspec somewhere? (I tried the podspec from the master branch, but am still seeing this error)

  8. 1ec5 commented on Aug 6, 2015

    @1ec5
    Contributor

    @kylederkacz, sorry, I should’ve updated this ticket. The issue has been fixed, so you can use the official podspec without a URL, as described here.

  9. 1ec5 commented on Aug 6, 2015

    @1ec5
    Contributor

    Although the version in master should be fine, too. Can you check whether you have -ObjC set according to this comment? Thanks.

  10. kylederkacz commented on Aug 7, 2015

    @kylederkacz

    I added the linker flags and but it's still not working. Any ideas? (I'm pretty new to iOS dev)

    Podfile:

    platform :ios, "8.0"
    
    target "App" do
      ...
      pod 'MapboxGL'
      ...
    end
    
    $ pod install
    Updating local specs repositories
    Analyzing dependencies
    Downloading dependencies
    ...
    Installing MapboxGL (0.5.1)
    ...
    Generating Pods project
    Integrating client project
    Sending stats
    

    screen shot 2015-08-06 at 7 32 15 pm

    Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_MGLMapView", referenced from:
          __TMaCSo10MGLMapView in ViewController.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
  11. 1ec5 commented on Aug 7, 2015

    @1ec5
    Contributor

    @kylederkacz, which versions of Xcode and the iOS SDK are you building with? Is ViewController written in Swift or Objective-C?

  12. kylederkacz commented on Aug 7, 2015

    @kylederkacz

    Xcode: Version 6.4 (6E35b)
    iOS SDK: 8.4
    ViewController: Swift

    $ pod --version
    0.38.2
    
  13. kylederkacz commented on Aug 7, 2015

    @kylederkacz

    I've deleted the Pods dir and pod cache clean --all ... still no dice

  14. 1ec5 commented on Aug 7, 2015

    @1ec5
    Contributor

    Can you try going to Product ‣ Clean Build Folder (hold down option) and rebuilding?

  15. kylederkacz commented on Aug 7, 2015

    @kylederkacz

    Cleaning the build folder didn't seem to fix the problem, but I started going through the other dependencies that I had in my Podfile, disabling them one at a time, and, after I disabled FXBlurView, everything was peachy again. Sorry for the wild goose chase.

  16. 460122775 commented on Mar 28, 2016

    @460122775

    How to solve this problem? I tried almost all solutions, but no use.
    After I upgrade to the iOS 9.3, then I get the error :
    "OBJC_CLASS$_MGLMapView",referenced from:
    type metadata accessor for __ObjC.MGLMapView in ProductViewA.o
    ld: symbol(s) not found for architecture i386

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I feel sleepy to this Mapbox-iOS-SDK, I delete it from cocoapods, download the sdk, and reset it by manual step by step with the README.md , but....no use!
    I fall in love with this map`s appearance, but Why it is so difficult to use this sdk?

  17. 1ec5 commented on Mar 28, 2016

    @1ec5
    Contributor

    Hi @460122775, it’s possible that the issue you’re seeing is unrelated to the other issues described here, which were fixed long ago. A few questions for you, so we can better understand what’s going on:

    1. Is your project written in Objective-C or Swift?
    2. Is Bitcode enabled? (It should be enabled by default if you’re using a recent Xcode version.)
    3. When you installed the SDK manually, did you install the dynamic framework or the static framework?
    4. If you installed the static framework, did you add -ObjC to the OTHER_LDFLAGS build setting?
    5. Does the error persist after cleaning your derived data (hold down Option and go to Product ‣ Clean Build Folder)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildiOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions