我正在將項目從Unity3d導出到使用最後一個GoogleMobileAds包的xcode。 我已經安裝和更新的CocoaPods,也有著名的podfile含德下面幾行:cocoapods谷歌手機廣告不生成.xcworkspace文件
source 'https://github.com/CocoaPods/Specs.git'
install! 'cocoapods', :integrate_targets => false
platform :ios, ‘8.0’
target ‘MyProject’ do
pod 'Google-Mobile-Ads-SDK', '~> 7.14’
pod 'Firebase/Core'
pod 'Firebase/AdMob'
end
,我跑
pod install
和
pod update
成功
的依賴關係是下載好吧,你可以看到下面的結果:
Updating local specs repositories
CocoaPods 1.2.0.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.0.beta.1
Analyzing dependencies
Downloading dependencies
Using Firebase (3.9.0)
Using FirebaseAnalytics (3.5.1)
Using FirebaseCore (3.4.4)
Using FirebaseInstanceID (1.0.8)
Installing Google-Mobile-Ads-SDK (7.14.0)
Using GoogleInterchangeUtilities (1.2.2)
Using GoogleSymbolUtilities (1.1.2)
Using GoogleToolboxForMac (2.1.0)
Generating Pods project
Skipping User Project Integration
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 8 total pods installed.
根據雙方的CocoaPods和谷歌移動廣告的文件,我需要繼續用「MyProject.xcworkspace」,但該文件是無處可尋。
有什麼建議嗎?
閱讀這個答案http://stackoverflow.com/a/10960309/7115714和評論 –
都能跟得上...項目目錄中不會出現名爲something.xcworkspace的文件或文件夾....項目名稱也對應於podfile中的目標名稱。 通常應該在運行pod安裝後創建 – kavehmb2000