我正在使用命令pod lib create生成的框架。
我想要创建一个依赖于另外两个豆荚的荚:PromiseKit和AWSS3。然后,我更改了Podfile:
use_frameworks!
target 'ruawss3_Example' do
pod 'ruawss3', :path => '../'
pod 'AWSS3'
pod 'PromiseKit', '~> 4.0'
target 'ruawss3_Tests' do
inherit! :search_paths
pod 'Quick'
pod 'Nimble'
pod 'FBSnapshotTestCase'
pod 'Nimble-Snapshots'
end
end并使用pod install
➜ Example git:(master) ✗ pod install
Analyzing dependencies
Fetching podspec for `ruawss3` from `../`
Downloading dependencies
Using AWSCore (2.4.16)
Using AWSS3 (2.4.16)
Using FBSnapshotTestCase (2.1.4)
Using Nimble (5.1.1)
Using Nimble-Snapshots (4.4.0)
Using PromiseKit (4.1.0)
Using Quick (1.0.0)
Using ruawss3 (0.1.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 7 dependencies from the Podfile and 8 total pods installed.
➜ Example git:(master) ✗ pwd
/Users/brunomacabeusaquino/ApenasMeu/Dropbox (BEPiD)/Swift/ruawss3/Example并在项目中添加此吊舱:

但是,我无法在Pods > Development > ruawss3 > ruawss3 > Classes >AmazonS3.Swive中编译该文件。Xcode找不到模块'AWSCore‘。怎么修呢?
发布于 2016-12-25 06:25:02
我解决了我的问题。
添加pod依赖项的正确位置是在.podspec文件中,使用构建设置依赖性。然后,执行pod install。
https://stackoverflow.com/questions/41294973
复制相似问题