在Jenkins机器上构建失败但在我的本地机器上运行正常

时间:2014-06-02 23:43:18

标签: objective-c xcode jenkins unity3d armv7

我正在尝试构建iOS Xcode项目,但是我收到了这个错误。请建议。我正在尝试使用命令行构建。它在我的本地机器OSX 10.9.2和Xcode 5.1.1

上工作正常

配置:

    Ld /Users/Shared/Jenkins/workspace/_/build/\ Dev.app/\ Dev normal armv7
    cd /Users/Shared/Jenkins/workspace/_/ios/modules/
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export 

路径:

PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/local/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
     

-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk   -L / Users / Shared / Jenkins / workspace / / build -L / Users / Shared / Jenkins / workspace / / ios / modules // Pods // Vendor / libidn -L / Users / Shared /詹金斯/工作区/ / IOS /模块//豆荚/ Google分析-IOS-SDK   -L /用户/共享/詹金斯/工作区/ / IOS /模块//../../../团结/出口/的iOS /设备/库   -L / Users / Shared / Jenkins / workspace / / ios / modules // lib / Release-iphoneos -F / Users / Shared / Jenkins / workspace / / build -F ../../ lib / comScore -F / Users / Shared / Jenkins / workspace / _ / ios / modules / -F \\" /Applications/Xcode.app/Contents/Developer/Library/Frameworks \\"   -F / Users / ksota / Desktop -F / Users / ksota / Documents / Git / _client_ios / modules / -filelist /Users/buildx/Library/Developer/Xcode/DerivedData/-fhknaihaumvqzygratthmtqcvsuj/Build/Intermediates/.build/Release-的iPhoneOS / UnityDevice.build /对象 - 正常/ ARMv7的/ \

记录我认为GoogleAnalytics开始的地方:

  

Dev.LinkFileList -dead_strip -ObjC -lGoogleAnalyticsServices -liconv   -lidn -lresolv -lsqlite3 -lxml2 -lz -framework加速-framework AudioToolbox -framework CFNetwork -framework CoreData -framework   CoreGraphics -framework CoreLocation -framework CoreMedia -framework   CoreVideo -framework Foundation -framework MediaPlayer -framework   MobileCoreServices -framework OpenAL -framework OpenGLES -framework   QuartzCore -framework Security -framework Social -framework   SystemConfiguration -framework UIKit -framework comScore   -weak_framework AVFoundation -weak_framework CoreMotion -framework AdSupport -lz -framework SystemConfiguration -framework CoreTelephony   -framework Social -framework Foundation-framework UIKit

登录Unity:

 -lPods-UnityDevice -licucore -liPhone-lib -lsqlite3.0 -framework NewRelicAgent -framework Accounts -Xlinker -dependency_info -Xlinker /Users/buildx/Library/Developer/Xcode/DerivedData/-fhknaihaumvqzygratthmtqcvsuj/Build/Intermediates/.build/Release-iphoneos/UnityDevice.build/Objects-normal/armv7/\
> Dev_dependency_info.dat -o /Users/Shared/Jenkins/workspace/_/build/\
> Dev.app/\ Dev
>     

为PIE生成警告:

ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in -[GHAnalyticsVideoEvent validate] from /Users/buildx/Library/Developer/Xcode/DerivedData/-fhknaihaumvqzygratthmtqcvsuj/Build/Intermediates/.build/Release-iphoneos/UnityDevice.build/Objects-normal/armv7/GHAnalyticsVideoEvent.o.
     

要修复此警告,请不要使用-mdynamic-no-pic进行编译或链接   -Wl,-no_pie

链接错误:

ld: internal error: atom not found in symbolIndex(__Z23UnityReorientQuaternionffff) for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

结果

The following build commands failed:
  Ld /Users/Shared/Jenkins/workspace/_/build/\ Dev.app/\ Dev normal armv7
(1 failure)
Build step 'Xcode' marked build as failure
Build step 'Upload to Testflight' marked build as failure
Archiving artifacts

0 个答案:

没有答案