我正在尝试使用SSZipArchive框架。我尝试通过cocoaPods“安装”(我无法安装),后来,我通过迦太基尝试。我以为第二个选项已经安装了它,但是没有安装。它给了我这个错误:

LD /用户/用户名/库/开发人员/Xcode/DerivedData/webR-enbsuevwixwhtweyjzzmrsectubh/Build/Products/Debug-iphonesimulator/webR.app/webR normal x86_64
cd /用户/ alumno /文档/ iosProj / webR
导出IPHONEOS_DEPLOYMENT_TARGET = 7.0
导出PATH =“/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / local / bin:/ 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 / Users / 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 /库-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 /产品/ Debug-iphonesimulator -F / Users / alumno / Documents / iosProj / webR / Carthage / Build / iOS -filelist / Users / alumno / Library / Developer / Xcode / DerivedData / webR-enbsuevwixwhtweteshj 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-框架安全性-框架系统配置-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 / phonei。 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_ency o /Users/alumno/Library/Developer/Xcode/DerivedData/webR-enbsuevwixwhtweyjzzmrsectubh/Build/Products/Debug-iphonesimulator/webR.app/webR

ld:找不到框架SSZipArchive
铛:错误:链接器命令
失败,退出代码为1(使用-v查看调用)

这些是我执行的步骤:

1-创建carpfile并添加以下行:

github "ZipArchive/ZipArchive"

2-通过以下命令通过终端安装它:
carthage update --platform iOS

3-在项目选项上链接框架和库。

4-在构建阶段运行脚本:
Shell: /bin/sh
/usr/local/bin/carthage copy-frameworks
Input Files: $(SRCROOT)/Carthage/Build/iOS/ZipArchive.framework

5-现在我可以正确使用导入了,但是,当我构建项目时,它给了我下面的错误。

编辑:您知道有什么工具可以解压缩支持iOS 7的下载数据吗?

最佳答案

终于,成功了!我只是不知道我必须在构建阶段指定必须复制的文件(框架)。我将为您提供屏幕截图,也许对某人有所帮助。

Screenshoot

TY

关于ios - Xcode:安装框架时链接器命令错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37831996/

10-08 23:12