最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[未解决]Carthage去安装Charts库时编译ChartsRealm-iOS出错:Ld armv7/Charts normal armv7

Carthage crifan 4989浏览 0评论
折腾:

[基本解决]使用iOS模拟器iPhone 6结果编译出错:file was built for i386 which is not the architecture being linked x86_64

期间,用
carthage update –no-use-binaries Charts
结果编译ChartsRealm-iOS时出错:
licrifandeMacBook-Pro:QorosSales crifan$ carthage update --no-use-binaries Charts
 *** Fetching Charts
 *** Cloning MJRefresh
 *** Fetching SwiftKeychainWrapper
 *** Fetching Alamofire
 *** Fetching XCGLogger
 *** Fetching realm-cocoa
 *** Fetching Cartography
 *** Checking out Charts at "v2.2.4"
 *** xcodebuild output can be found in /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/carthage-xcodebuild.H5LhwW.log
 *** Building scheme "Charts-TV" in Charts.xcodeproj
 *** Building scheme "Charts-OSX" in Charts.xcodeproj
 *** Building scheme "ChartsRealm-OSX" in ChartsRealm.xcodeproj
 *** Building scheme "ChartsRealm-iOS" in ChartsRealm.xcodeproj
 ** BUILD FAILED **

The following build commands failed:
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Intermediates/Charts.build/Release-iphoneos/Charts-OSX.build/Objects-normal/armv7/Charts normal armv7
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/crifan/dev/dev_root/daryun/Projects/Qoros/QorosSales/Sourcecode/QorosSales/Carthage/Checkouts/Charts/ChartsRealm/ChartsRealm.xcodeproj -scheme ChartsRealm-iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Intermediates/Charts.build/Release-iphoneos/Charts-OSX.build/Objects-normal/armv7/Charts normal armv7


(1 failure)
看来是:
之前项目中的配置,被改出问题了?
去把x86_64和i386从Valid Architecture中删除掉:
remove x86_64 i386 from valid architecture
结果出现类似错误:
licrifandeMacBook-Pro:QorosSales crifan$ carthage update --no-use-binaries Charts
***Fetching Charts
***Fetching MJRefresh
***Fetching SwiftKeychainWrapper
***Fetching Alamofire
***Fetching XCGLogger
***Fetching realm-cocoa
***Fetching Cartography
***Checking out Charts at"v2.2.4"
***xcodebuild output can be found in/var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/carthage-xcodebuild.lTqYMm.log
***Building scheme"Charts-TV"in Charts.xcodeproj
***Building scheme"Charts-OSX"in Charts.xcodeproj
***Building scheme"Charts-iOS"in Charts.xcodeproj
***Building scheme"ChartsRealm-iOS"in ChartsRealm.xcodeproj
** BUILD FAILED **


The following build commands failed:
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Intermediates/Charts.build/Release-iphonesimulator/Charts-OSX.build/Objects-normal/x86_64/Charts normal x86_64
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Intermediates/Charts.build/Release-iphonesimulator/Charts-OSX.build/Objects-normal/i386/Charts normal i386
(2 failures)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/crifan/dev/dev_root/daryun/Projects/Qoros/QorosSales/Sourcecode/QorosSales/Carthage/Checkouts/Charts/ChartsRealm/ChartsRealm.xcodeproj -scheme ChartsRealm-iOS -configuration Release -sdk iphonesimulator -destination platform=iOS Simulator,id=7015D2CF-8ABF-4584-995F-A2D34C476F7A -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **


The following build commands failed:
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Intermediates/Charts.build/Release-iphonesimulator/Charts-OSX.build/Objects-normal/x86_64/Charts normal x86_64
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Intermediates/Charts.build/Release-iphonesimulator/Charts-OSX.build/Objects-normal/i386/Charts normal i386
(2 failures)
感觉,难道是:
还是之前残留的各种Charts?
那么去对应路径:
/Users/crifan/Library/Developer/Xcode/DerivedData/
删除掉所有和Charts有关的文件夹和文件?
deviveddata remove all charts related
这样,以后需要对应的库的话,再重新编译。
重新试试:
carthage update –no-use-binaries Charts
licrifandeMacBook-Pro:QorosSales crifan$ carthage update --no-use-binaries Charts
*** Fetching Charts
*** Fetching MJRefresh
*** Fetching SwiftKeychainWrapper
*** Fetching Alamofire
*** Fetching XCGLogger
*** Fetching realm-cocoa
*** Fetching Cartography
*** Checking out Charts at "v2.2.4"
*** xcodebuild output can be found in /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/carthage-xcodebuild.WgYYDV.log
*** Building scheme "Charts-TV" in Charts.xcodeproj
*** Building scheme "Charts-OSX" in Charts.xcodeproj
*** Building scheme "Charts-iOS" in Charts.xcodeproj
*** Building scheme "ChartsRealm-TV" in ChartsRealm.xcodeproj
** BUILD FAILED **


The following build commands failed:
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Products/Release-appletvos/Charts.framework/Charts normal arm64
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/crifan/dev/dev_root/daryun/Projects/Qoros/QorosSales/Sourcecode/QorosSales/Carthage/Checkouts/Charts/ChartsRealm/ChartsRealm.xcodeproj -scheme ChartsRealm-TV -configuration Release -sdk appletvos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **


The following build commands failed:
Ld /Users/crifan/Library/Developer/Xcode/DerivedData/ChartsRealm-henokosypuekvqgqvthggjdtnuey/Build/Products/Release-appletvos/Charts.framework/Charts normal arm64

(1 failure)

 

但是最终还是没有解决。

由于已经得到了,可用的,iOS版本的库了,

暂时就不继续去深究了-》等以后用到了Realm的Charts,再说。

转载请注明:在路上 » [未解决]Carthage去安装Charts库时编译ChartsRealm-iOS出错:Ld armv7/Charts normal armv7

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.210 seconds, using 22.18MB memory