0

CI 用の最初のボットをセットアップしようとしています。このボットは git からソース ツリーを正常にダウンロードしますが、通常の Xcode 5.0.1 環境で問題なくビルドおよび実行できるアプリケーション (IOS7、シミュレーター モード) のビルドに失敗します。

特にボットは ld ステージで失敗します (以下の抜粋を参照)。ログ ファイルからわかるように、ld は CA.. 関数が定義されている QuartzCore フレームワークを見つけることができません。

コンパイラはフレームワークからすべてのヘッダー ファイルを見つけたので、一見するとパスは正常に構成されていますが、ld はリンクするライブラリ自体を見つけることができません...

これは、権限または環境設定の些細なエラーだと思います。掘る場所を教えてください。

前もって感謝します。

よろしく、ウラジミール

+++ +++ +++
"/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 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator -F/Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Intermediates/SBK.build/Debug-iphonesimulator/SBKTests.build/Objects-normal/i386/SBKTests.LinkFileList -bundle_loader /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator/SBK.app/SBK -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreText -framework SenTestingKit -framework UIKit -framework Foundation -framework CoreData -Xlinker -dependency_info -Xlinker /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Intermediates/SBK.build/Debug-iphonesimulator/SBKTests.build/Objects-normal/i386/SBKTests_dependency_info.dat -o /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator/SBKTests.octest/SBKTests Undefined symbols for architecture i386:

"_CATransform3DMakeScale", referenced from:       -[MBSwitch showFillLayer:animated:] in MBSwitch.o

"_CGAffineTransformIdentity", referenced from:       -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o

"_CGContextAddLineToPoint", referenced from:       -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o

    "_CGContextAddPath", referenced from:

. . . . [skip ] . . . .

ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
** TEST FAILED **
The following build commands failed:
Ld /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator/SBKTests.octest/SBKTests normal i386 (1 failure)
+++ +++ +++
4

1 に答える 1

5

解決しました!

本当に些細な問題でした。

Xcode ボットは、スキーマに含まれるすべてのターゲットをビルドしようとします。私の場合、これはプロジェクト自体と単体テストのターゲットです。テストがまだ開発されていないため、このターゲットはコンパイルされていません。しかし、ボットはそれをコンパイルしようとします...したがって、「メインターゲット」にリンクされているすべてのフレームワークは、テストターゲットにもリンクする必要があります。

于 2013-11-05T06:29:49.683 に答える