我正在将项目从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