我试图使用框架SSZipArchive。我试着安装"它通过cocoaPods(我无法做到),后来,我尝试通过迦太基。我认为第二个选项已安装它,但它没有。它给了我这个错误:
Ld /Users/alumno/Library/Developer/Xcode/DerivedData/webR-enbsuevwixwhtweyjzzmrsectubh/Build/Products/Debug-iphonesimulator/webR.app/webR normal x86_64 cd / Users / alumno / Documents / iosProj / webR export IPHONEOS_DEPLOYMENT_TARGET = 7.0 export PATH =" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / local /箱:在/ usr / bin中:/ bin中:/ usr / sbin目录:/ sbin目录" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9。 3.sdk -L / Users / alumno / Library / Developer / Xcode / DerivedData / webR-enbsuevwixwhtweyjzzmrsectubh / Build / Products / Debug-iphonesimulator -L / Users / alumno / Documents / iosProj / webR / Pods / GGLInstanceID / Libraries -L /用户/ alumno / Documents / iosProj / webR / Pods / Google / Libraries -L / Users / alumno / Documents / iosProj / webR / Pods / GoogleCloudMessaging / Libraries -L / Users / alumno / Documents / iosProj / webR / Pods / GoogleIPhoneUtilities /库-L / Users / alumno / Documents / iosProj / webR / Pods / GoogleInterchangeUtilities / Libraries -L / Users / alumno / Documents / iosProj / webR / Pods / GoogleNetworkingUtilities / Libraries -L / Users / alumno / Documents / iosProj / webR / Pods / GoogleSymbolUtilities / Libraries -L / Users / alumno / Documents / iosProj / webR / Pods / GoogleUtilities / Libraries -F / Users / alumno / Library / Developer / Xcode / DerivedData / webR-e nbsuevwixwhtweyjzzmrsectubh / Build / Products / Debug-iphonesimulator -F / Users / alumno / Documents / iosProj / webR / Carthage / Build / iOS -filelist / Users / alumno / Library / Developer / Xcode / DerivedData / webR-enbsuevwixwhtweyjzzmrsectubh / Build / Intermediates / webR.build/Debug-iphonesimulator/webR.build/Objects-normal/x86_64/webR.LinkFileList -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -Xlinker -rpath -Xlinker @ executable_path /框架-mios模拟器版本分钟= 7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lGGLCloudMessaging -lGGLCore -lGGLInstanceIDLib -lGIP_Locale -lGIP_Reachability -lGSDK_Overload_external -lGTMSessionFetcher_core_external -lGTMSessionFetcher_full_external -lGTMStackTrace_external -lGTM_AddressBook_external -lGTM_DebugUtils_external -lGTM_GTMURLBuilder_external -lGTM_KVO_external -lGTM_NSData + zlib -lGTM_NSDictionary + URLArguments_external -lGTM_NSScannerJSON_external -lGTM_NSStringHTML_external -lGTM_N SStringXML_external -lGTM_Regex_external -lGTM_RoundedRectPath_external -lGTM_StringEncoding_external -lGTM_SystemVersion_external -lGTM_UIFont + LineHeight_external -lGTM_core_external -lGTM_iPhone_external -lGcmLib -lProtocolBuffers_external -lsqlite3 -lstdc ++ -lz -framework通讯录-framework AssetsLibrary -framework的CoreFoundation -framework CoreGraphics中-framework CoreLocation -framework CoreMotion -framework MessageUI -framework SSZipArchive -framework Security -framework SystemConfiguration -L / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / lib / swift / iphonesimulator -Xlinker -force_load -Xlinker /Applications/Xcode.app/Contents/Developer/工具链/ XcodeDefault.xctoolchain / usr / lib / arc / libarclite_iphonesimulator.a -Xlinker -add_ast_path -Xlinker /Users/alumno/Library/Developer/Xcode/DerivedData/webR-enbsuevwixwhtweyjzzmrsectubh/Build/Intermediates/webR.build/Debug-iphonesimulator/ webR.build/Objects-normal/x86_64/webR.swiftmodule-framework ZipA rchive -Xlinker -dependency_info -Xlinker /Users/alumno/Library/Developer/Xcode/DerivedData/webR-enbsuevwixwhtweyjzzmrsectubh/Build/Intermediates/webR.build/Debug-iphonesimulator/webR.build/Objects-normal/x86_64/webR_dependency_info.dat- o /Users/alumno/Library/Developer/Xcode/DerivedData/webR-enbsuevwixwhtweyjzzmrsectubh/Build/Products/Debug-iphonesimulator/webR.app/webR
ld:框架未找到SSZipArchive clang:错误:链接器命令 退出代码1失败(使用-v查看调用)
这些是我所做的步骤:
1-创建carpfile并添加以下行:
github "ZipArchive/ZipArchive"
2-通过此命令通过终端安装它:
carthage update --platform iOS
3-在项目选项上链接框架和库。
4-在Build阶段运行一个脚本:
Shell: /bin/sh
/usr/local/bin/carthage copy-frameworks
Input Files: $(SRCROOT)/Carthage/Build/iOS/ZipArchive.framework
5-现在我可以正确使用导入,但是当我构建项目时,它给出了下面的错误。
编辑:你知道解压缩支持iOS 7的下载数据的工具吗?