【问题标题】:Calabash-ios link error: "_kSecAttrSynchronizableAny", referenced from: -[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)Calabash-ios 链接错误:“_kSecAttrSynchronizableAny”,引用自:-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
【发布时间】:2014-10-22 06:50:51
【问题描述】:

我在尝试运行 calabash-ios 项目的 ..-cal 目标时遇到链接错误。

错误是:

`ld /Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Products/Debug-iphonesimulator/delete-cal.app/delete-cal 正常 i386 cd /Users/balaiyan/dev/automation/apps/delete setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6。 1.sdk -L/Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Products/Debug-iphonesimulator -F/Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/ Products/Debug-iphonesimulator -F/Users/balaiyan/dev/automation/apps/delete -filelist /Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Intermediates/delete.build/Debug-iphonesimulator/ delete-cal.build/Objects-normal/i386/delete-cal.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -force_load /Users/balaiyan/dev/automation/apps/delete/calabash.framework/calabash -lstdc++ -fobjc-link -runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework Security -framework CFNetwork -fram ework UIKit -framework Foundation -framework CoreGraphics -framework calabash -o /Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Products/Debug-iphonesimulator/delete-cal.app/delete-cal 架构 i386 的未定义符号: “_kSecAttrSynchronizableAny”,引用自: - [LPSSKeychainQuery 查询] 在葫芦中(LPSSKeychainQuery.o) ld:未找到体系结构 i386 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) `

解决下图问题后出现上述错误

https://github.com/calabash/calabash-ios执行步骤后出现Calabash链接错误


我第一次在我的 Home iMac 上为 iOS 设置葫芦,它运行在 OS X 狮子,
XCode 版本 4.6.2,
将 ruby​​ 更新为 ruby​​ 2.0.0p451(2014-02-24 修订版 45167)[x86_64-darwin12.5.0]

安装 ruby​​ 时在终端上发现了这个

   ruby-2.0.0-p451 - #generating default wrappers........
   Updating certificates in '/etc/openssl/cert.pem'.
   mkdir: /etc/openssl: Permission denied
   apples-iMac:~ balaiyan$ rvm osx-ssl-certs status all
   Certificates for /etc/openssl/cert.pem: Up to date.

不确定这是否会造成问题。

我之前在运行 Mavericks 的 Office Macbook pro 上完成了这些步骤,但没有发现任何问题。这是否意味着最新的 calabash-ios 有任何向后兼容性问题,还是与我的钥匙串有关。需要一些帮助。

【问题讨论】:

    标签: compiler-errors ui-automation ios-ui-automation calabash-ios


    【解决方案1】:

    葫芦的当前版本 0.9.169 包含 iOS 7 符号。其中之一是kSecAttrSynchronizableAny

    要使用此版本,基础 SDK 必须至少为 7.0。最低部署目标仍可低至 5.1.1。

    支持基本 SDK 6.0 的最新版本是 0.9.167。

    0.9.168 于 3 月发布。我们决定放弃对基本 SDK

    您能否将您的 Xcode 升级到 5.1.1 并将您的基础 SDK 升级到 7.0?

    如果您必须降级您的 gem 版本,请确保替换您现有的 calabash.framework 并链接到与您的版本兼容的版本。

    【讨论】:

    • 感谢您的回答。我选择了较低版本的葫芦,一切都按预期工作。不幸的是,我不想升级需要操作系统更新的 XCode 5.1.1,目前我必须确保我在这台 iMac 上的其他工作不会造成任何问题,并且可能需要大量设置才能让其他应用程序在新操作系统上运行.真的非常感谢。
    猜你喜欢
    • 1970-01-01
    • 2013-09-16
    • 1970-01-01
    • 1970-01-01
    • 2015-09-28
    • 2014-08-21
    • 2014-05-07
    • 2014-03-02
    • 1970-01-01
    相关资源
    最近更新 更多