2016-12-23 48 views
0

我跟着this article整合Google Maps使用Cocoapods在我的iOS應用程序。我收到以下錯誤。

enter image description here

podfile看起來像這樣

# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

source 'https://github.com/CocoaPods/Specs.git' 

target 'ClockIt' do 
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for ClockIt 

    pod 'GoogleMaps' 
    pod 'GooglePlaces' 

    target 'ClockItTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

    target 'ClockItUITests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 

難道我做錯了什麼?

+0

pod沒問題,問題在於您的項目設置。如果您嘗試使用演示項目運行相同的窗格,它將運行。嘗試搜索'架構armv7找不到符號' –

回答

0

我解決了問題,通過以下幾個步驟

打開構建階段選項卡,鏈接二進制與圖書館內,加 以下框架:

  • GoogleMapsBase.framework
  • 谷歌地圖.framework
  • GoogleMapsCore.framework
  • GoogleMapsM4B.framewor K(高級計劃用戶)
  • Accelerate.framework
  • CoreData.framework CoreGraphics.framework
  • CoreLocation.framework
  • CoreText.framework
  • GLKit.framework
  • ImageIO.framework
  • 的libC++ .tbd
  • libz.tbd
  • OpenGLES.framework
  • QuartzCore.framework
  • SystemConfiguration.framework
  • UIKit.framework

這一步也是至關重要的,如果你正在做一個吊艙安裝。

這不包括在Google Map integration documentation中,用於安裝pod。