折腾:
期间,去执行carthage update期间,又出现其它错误:
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace 2016-10-15 22:46:26.855 xcodebuild[29026:1968622] WARNING: Failed to load plugin at path: "/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin): no suitable image found. Did find: /Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin: code signing blocked mmap() of ‘/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin’" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin, NSDebugDescription=dlopen_preflight(/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin): no suitable image found. |
Error: Error Domain=NSCocoaErrorDomain Code=3587 no suitable image found
Failed to load plugin in xcode8 · Issue #4 · DyCI/dyci-xcode-plugin · GitHub
去试了试:
export FORK_XCODE_WRITING=true
结果错误依旧。
python – Xcode 8 don’t Start – Stack Overflow
难道和Mac中Python有关系?
➜ FreeShadowsocks python -V Python 2.7.10 |
carthage update no suitable image found
carthage update WARNING: Failed to load plugin at path
always ** BUILD FAILED ** when run the sh · Issue #2074 · mozilla-mobile/firefox-ios · GitHub
➜ FreeShadowsocks xcodebuild -version Xcode 8.0 Build version 8A218a |
ios – Alamofire error on carthage update – Stack Overflow
尝试,把已有的Carthage文件夹都删除:
重新运行试试:
还是错误:
FreeShadowsocks carthage update –platform iOS *** Fetching SwiftHEXColors *** Fetching XCGLogger *** Fetching SwiftHTTPStatusCodes *** Fetching SwiftyJSON *** Fetching Alamofire *** Fetching Cartography *** Checking out Alamofire at "3.5.1" *** Checking out SwiftHTTPStatusCodes at "3.1.0" *** Checking out XCGLogger at "2fd27c92eb102bcf09f3176a230e42e38cacd4a2" *** Checking out Cartography at "1.0.1" *** Checking out SwiftHEXColors at "f4b98e298528fd9d88b10ab55e806d29ce497daa" *** Downloading SwiftyJSON.framework binary at "3.1.1" *** xcodebuild output can be found in /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/carthage-xcodebuild.edzppz.log *** Building scheme "Alamofire iOS" in Alamofire.xcworkspace 2016-10-15 23:02:42.819 xcodebuild[32213:1998388] WARNING: Failed to load plugin at path: "/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin): no suitable image found. Did find: /Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin: code signing blocked mmap() of ‘/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin’" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin, NSDebugDescription=dlopen_preflight(/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin): no suitable image found. |
carthage code signing blocked mmap() of
carthage no suitable image found Did find
Fixing Xcode CLI builds with broken plugin warnings — Ian Dundas.
去删除对应的库?
去试试:
➜ FreeShadowsocks rm -rf /Users/crifan/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin ➜ FreeShadowsocks rm -rf /Users/crifan/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/RealmPlugin.xcplugin ➜ FreeShadowsocks rm -rf /Users/crifan/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin |
然后重新编译:
carthage update –platform iOS
就可以了。
【总结】
此处,carthage update出错:
WARNING: Failed to load plugin at path: "/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/crifan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin/Contents/MacOS/WCGitTagsPlugin): no suitable image found.
的原因是:
Xcode升级到8之后,
好像对应的Xcode的插件的code sign就失效了?
导致无法访问和使用了
至少是找不到对应的图片了
解决办法是:
直接删除对应的插件:
rm -rf /Users/crifan/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin rm -rf /Users/crifan/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/RealmPlugin.xcplugin rm -rf /Users/crifan/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/WCGitTagsPlugin.xcplugin |
即可。
如果需要使用对应的插件,之后再去安装即可。
转载请注明:在路上 » 【已解决】Xcode8中carthage update出错:WARNING: Failed to load plugin at path Error Domain=NSCocoaErrorDomain Code=3587 no suitable image found