舉報
你做了什麼?無法找到分機的主機目標
我試圖運行吊艙安裝命令
你是怎麼想到要發生什麼?
像1.1.1版本一樣正確安裝所有的pod依賴關係。
發生了什麼呢?
[!]無法找到myExtension1,myExtension2的主機目標。請將嵌入式目標的主機目標添加到Podfile。 某些類型的目標需要主機目標。主機目標是嵌入「子」目標的「父」目標。這些例子類型的需要主機目標目標:
- 框架
- 應用程序擴展
- 手錶OS 1個擴展
- 消息拓
的CocoaPods(有消息應用程序一起使用時除外)環境
Stack
CocoaPods : 1.2.1
Ruby : ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-darwin15]
RubyGems : 2.4.5.1
Host : Mac OS X 10.12.5 (16F73)
Xcode : 8.3.3 (8E3004b)
Git : git version 2.13.0
Ruby lib dir : /Users/dogo/.rbenv/versions/2.2.5/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 08682dc5b65d664048f43d7886a018856c692b63
安裝源
Executable Path: /Users/dogo/.rbenv/versions/2.2.5/bin/pod
插件
claide-plugins : 0.9.2
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.2.0
cocoapods-try : 1.1.0
slather : 2.4.2
Podfile
source 'https://github.com/CocoaPods/Specs.git'
project 'MyProject', 'DebugProduction' => :release , 'Integrated' => :release , 'Mock' => :release, 'DebugMock' => :debug
platform :ios, '8.0'
inhibit_all_warnings!
def all_pods
pod 'AFNetworkActivityLogger'
pod 'AFNetworking'
pod 'AMPopTip', '~> 1.0.0'
pod 'BBBadgeBarButtonItem', '~> 1.2'
pod 'Bricks', '~> 0.1.2'
pod 'bricks-Mantle', '~> 0.1.0'
pod 'CocoaLumberjack', '~> 2.2.0'
pod 'Crashlytics'
pod 'CustomIOSAlertView'
pod 'Fabric'
pod 'FBSDKCoreKit', '4.16.0'
pod 'FBSDKLoginKit', '4.16.0'
pod 'FBSDKShareKit', '4.16.0'
pod 'FDKeychain', '~> 1.0.0'
pod 'FSCalendar'
pod 'GoogleAnalytics', '~> 3.17.0'
pod 'GoogleConversionTracking', '~> 3.4.0'
pod 'GoogleMaps', '2.3.1'
pod 'HockeySDK', '4.1.6'
pod 'JVFloatLabeledTextField'
pod 'LGPlusButtonsView'
pod 'MaryPopin', '1.4.2'
pod 'MBProgressHUD'
pod 'MGSwipeTableCell'
pod 'MMWHaleImageCropper', '~> 0.1'
pod 'NSStringMask', '1.2'
pod 'ObjectiveSugar', '~> 1.1.0'
pod 'PromiseKit', '~> 1.7.0'
pod 'Realm', '~> 2.3.0'
pod 'REFrostedViewController', '~> 2.4'
pod 'RegExCategories', '~> 1.0'
pod 'SMXMLDocument', '~> 1.1'
pod 'SpotlightHandler', :git => 'https://github.com/renatosarro/SpotlightHandler'
pod 'SRMonthPicker', '~> 0.2.10'
pod 'TLInputsChainHelper', :git => 'https://github.com/thiagolioy/TLInputsChainHelper.git'
pod 'TLJsonFactory'
pod 'UITintedButton'
pod 'XMLDictionary', '1.4'
pod 'ZBarSDK'
pod 'ZSWTaggedString', '~> 1.1'
pod 'ZSWTappableLabel', '1.3'
end
target :MyProject do
all_pods
end
target :'MyProject-cal' do
all_pods
end
target :MyProjectExtension do
pod 'GoogleAnalytics', '~> 3.17.0'
end
target :MyProject2 do
all_pods
end
target :'MyProject2-cal' do
all_pods
end
target :MyProjectExtension2 do
pod 'GoogleAnalytics', '~> 3.17.0'
end
target :MyProjectTests do
inherit! :search_paths
pod 'Expecta'
pod 'OCMock'
pod 'Specta', '1.0.5'
pod 'TLJsonFactory'
end
清理生成,重新啓動電腦,然後再試一次!我遇到了類似的問題,通過該問題得到解決 –