尝试运行calabash-ios项目的..cal目标时出现链接错误。

错误是:

     `Ld /Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Products/Debug-iphonesimulator/delete-cal.app/delete-cal normal 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 -framework 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

    Undefined symbols for architecture i386:
      "_kSecAttrSynchronizableAny", referenced from:
          -[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    `

Got the above error after solving the one in picture below

compiler-errors - Calabash-ios链接错误:  “_kSecAttrSynchronizableAny” , referenced from: -[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)-LMLPHP


I am doing first time calabash setup for iOS at my Home iMac, that runs onOS X Lion,
XCode version 4.6.2,
updated ruby to ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]

While installing ruby found this on terminal

   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有任何向后兼容性问题,还是与我的钥匙串(keychain)有关。需要一些帮助。

(adsbygoogle = window.adsbygoogle || []).push({});

最佳答案

瓢虫的最新版本0.9.169包含iOS 7符号。其中之一是kSecAttrSynchronizableAny

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

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

0.9.168在三月份发布。我们决定放弃对基本SDK
您可以将Xcode升级到5.1.1并将基本SDK升级到7.0吗?

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

  • https://github.com/calabash/calabash-ios/wiki/B1-Updating-your-Calabash-iOS-version
  • (adsbygoogle = window.adsbygoogle || []).push({});
    10-08 02:52