我尝试在我的项目目录中运行pod install命令。但是它抛出一个错误,如下所示:
[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:
project 'path/to/Project.xcodeproj'我的项目目录:
- MyApp
- MyApp.xcodeproj
- MyApp.xcworkspace
- Podfile
- Podfile.lock
- PodspodFile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
project '/Users/dev4/Developer/iOS/MyApp/MyApp.xcodeproj'
target 'MyApp' do
pod 'Gifu'
pod 'Alamofire'
pod 'SwiftyJSON'
pod 'Fabric'
pod 'Crashlytics'
pod 'IQKeyboardManagerSwift'
pod 'NVActivityIndicatorView'
pod 'M13Checkbox'
pod 'Kingfisher'
pod 'KMPlaceholderTextView'
pod 'WDImagePicker', :git => 'https://github.com/justwudi/WDImagePicker', :tag => 'master'
pod 'RSBarcodes_Swift', '~> 0.1.9'
pod 'CCMPopup'
pod 'Cosmos', '~> 1.0'
pod 'FLAnimatedImage', '~> 1.0'
pod 'Google/Analytics'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
end我添加了代码部分“'myprojectpath/to/Project.xcodeproj'". 项目”但没起作用。我怎么才能解决这个问题?
发布于 2017-11-13 10:06:11
我通过修改App name.When复制了我以前的项目,我经历了这个问题,我遍历了我的项目结构,并了解到我有两个.xcodeproj文件.After,删除了这个问题的旧文件。
发布于 2017-05-28 03:39:47
您指定的路径应该相对于您的Podfile。因此,如果您的Podfile位于“/use/dev4/Developer/iOS/”中,那么您应该使用:
project 'MyApp/MyApp.xcodeproj'https://stackoverflow.com/questions/41162645
复制相似问题