Calabash-ios链接错误:“_kSecAttrSynchronizableAny”,引用自: - calabash中的[LPSSKeychainQuery查询](LPSSKeychainQuery.o) [英] Calabash-ios link error: "_kSecAttrSynchronizableAny", referenced from: -[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)

查看:706
本文介绍了Calabash-ios链接错误:“_kSecAttrSynchronizableAny”,引用自: - calabash中的[LPSSKeychainQuery查询](LPSSKeychainQuery.o)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



错误是:

 
`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 /发布时间:15年07月12日原作者:dcow是什么意思?是什么意思?是什么意思?是什么意思_解释_例句_用法 - 用户/ 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安全框架CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -framework calabash -o / Users / balaiyan / Library / Developer / Xcode / DerivedData / delete-fdnlnapawhvvmpgxjbbzoopkiefe / Build / -iphonesimulator / delete-cal.app / delete-cal

架构i386的未定义符号:
_kSecAttrSynchronizableAny,引用自:
- calabash中的[LPSSKeychainQuery查询](LPSSKeychainQuery .o)
ld:没有为架构i386找到符号
clang:error:linker命令失败,退出代码为1(使用-v查看调用)
`



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




Calabash链接错误,请执行以下步骤 https://github.com/calabash/calabash-ios






我在我的Home iMac上执行iOS的第一次葫芦设置,运行在
OS X Lion,

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默认包装器........ 
更新' etc / openssl / cert.pem'。
mkdir:/ etc / openssl:Permission denied
apples-iMac:〜balaiyan $ rvm osx-ssl-certs status all
/etc/openssl/cert.pem的证书:最新。

不知道是否会造成问题。



我以前在办公室Macbook pro上运行Mavericks做了这些步骤,没有发现任何问题。这是否意味着最新的calabash-ios有任何向后兼容性问题,或者是与我的钥匙串有关。需要一些帮助。

解决方案

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



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



支持6.0的基本SDK的最后一个版本是0.9.167。



0.9.168于三月发布。我们决定放弃对基础SDK& 7.0,因为苹果停止接受使用基础SDK& 7.0。



您可以将Xcode升级到5.1.1,并将基本SDK压缩到7.0吗?



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




I got a link error when trying to run a ..-cal target of calabash-ios project.

The error is:

     `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

Calabash link error after following steps at https://github.com/calabash/calabash-ios


I am doing first time calabash setup for iOS at my Home iMac, that runs on OS 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.

not sure if this is creating the problem.

I had previously done these steps on a office Macbook pro running Mavericks, and didnt find any problem. Does it mean the latest calabash-ios has any backwards compatibility issue, or is it something to do with my keychain. Need some help.

解决方案

The current version of calabash, 0.9.169, contains iOS 7 symbols. One of which is kSecAttrSynchronizableAny.

To use this version, the base SDK must be at least 7.0. The minimum deployment target can still be as low as 5.1.1.

The last version that support a base SDK of 6.0 was 0.9.167.

0.9.168 was released in March. We decided to drop support for base SDK < 7.0 because Apple stopped accepting AppStore submissions that used base SDK < 7.0.

Can you upgrade your Xcode to 5.1.1 and bump your base SDK to 7.0?

If you must downgrade your gem version, please make sure to replace your existing calabash.framework and link in the version that is compatible with your version.

这篇关于Calabash-ios链接错误:“_kSecAttrSynchronizableAny”,引用自: - calabash中的[LPSSKeychainQuery查询](LPSSKeychainQuery.o)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆