【发布时间】:2016-11-14 21:09:41
【问题描述】:
我正在将一个项目从 Unity3d 导出到使用最后一个 GoogleMobileAds 包的 xcode。 我已经安装并更新了 cocoapods,并且还有著名的 podfile,其中包含以下几行:
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”,但找不到该文件。
有什么建议吗?
【问题讨论】:
-
阅读此答案stackoverflow.com/a/10960309/7115714 和 cmets
-
Nope... 在我的项目目录中没有出现一个名为 something.xcworkspace 的文件和文件夹...。项目名称也对应于 podfile 中的目标名称。通常应该在运行 pod install 后创建