2012-03-11 12 views
1

関連するすべてのフレームワークを追加し、すべての関連ファイルをインポートしました。実際、インポートを取り除くと、すべてのメソッドにエラーが見つかりません。任意のアイデアをどのようにこれを修正するには?Apple mach-o linked(Id)エラー

Ld /Users/Andrew/Library/Developer/Xcode/DerivedData/Journal-acrxfhgfvgofuyczzlzmnzunciov/Build/Products/Debug-iphonesimulator/Journal.app/Journal normal i386 
    cd "/Users/Andrew/Dropbox/Developer/Dear Me/Version 1.0/XCode/Journal/Journal" 
    setenv MACOSX_DEPLOYMENT_TARGET 10.6 
    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/iPhoneSimulator5.1.sdk -L/Users/Andrew/Library/Developer/Xcode/DerivedData/Journal-acrxfhgfvgofuyczzlzmnzunciov/Build/Products/Debug-iphonesimulator -F/Users/Andrew/Library/Developer/Xcode/DerivedData/Journal-acrxfhgfvgofuyczzlzmnzunciov/Build/Products/Debug-iphonesimulator -filelist /Users/Andrew/Library/Developer/Xcode/DerivedData/Journal-acrxfhgfvgofuyczzlzmnzunciov/Build/Intermediates/Journal.build/Debug-iphonesimulator/Journal.build/Objects-normal/i386/Journal.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/Andrew/Library/Developer/Xcode/DerivedData/Journal-acrxfhgfvgofuyczzlzmnzunciov/Build/Products/Debug-iphonesimulator/Journal.app/Journal 

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

EDIT:これらのコード行から

は:

CGRect borderRect = rectForRectWithInset(self.bounds, 0.5); 
CGMutablePathRef borderPath = createRoundedRectForRect(borderRect, 4); 

彼らは中にそれらのメソッドを持つクラスを参照するには、同じ輸入品で、私は別のプロジェクトでは、同じ動作をします。参照されたメソッド、同じインポートされたフレームワーク。

+0

これらのエラーを生成している2行のコードを表示できますか?また、どのフレームワークを正確に追加しましたか? –

+1

その情報で編集しました。 – Andrew

+0

アップルのフレームワークでこれらのメソッドを見つけることができませんでした。彼らがどのような枠組みになっているのか分かりますか? QuartzCore/CoreGraphicsには同等の機能があります(下記のコメントのコメントに記載されています)。 –

答えて

3

リンカーエラーは、ターゲットのビルドフェーズにフレームワークを含めることができなかった可能性が高いことを示しています。

私は上記の関数の実装についてはわかりませんが、CoreGraphicsまたはQuartzCoreのいずれかを含めることができませんでした。メインヘッダーファイルをインポートする必要があります。

+0

いいえ、どちらの関数もAppleのフレームワークにありません。 (CGRectInset()と、+ [UIBezierPath bezierPathWithRoundedRect:cornerRadius:] 'と同等のものがありますが) –

+0

@KurtRevis:しかし、それらはフレームワークに依存している可能性があります – vikingosegundo