1

まず、xcodeプロジェクトを作成し、次にプロジェクトにCordovaを追加します

私はこのチュートリアルでこのステップバイステップを作成しました:http://docs.phonegap.com/en/2.2.0/guide_cordova-webview_ios.md.html#Embedding%20Cordova%20WebView%20on%20iOS

それでもエラーが発生しました

Libtool /Users/wanyc/Library/Developer/Xcode/DerivedData/TestCordova-bmqmtqdeafhklhbjqbnmochohdoe/Build/Products/Debug-iphonesimulator/libCordova.a normal i386
    cd /Users/wanyc/Downloads/infoviz-ios-master/CordovaLib
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.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/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/wanyc/Library/Developer/Xcode/DerivedData/TestCordova-bmqmtqdeafhklhbjqbnmochohdoe/Build/Products/Debug-iphonesimulator -filelist /Users/wanyc/Library/Developer/Xcode/DerivedData/TestCordova-bmqmtqdeafhklhbjqbnmochohdoe/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/Cordova.LinkFileList -all_load -Obj-C -lsqlite3.0 -o /Users/wanyc/Library/Developer/Xcode/DerivedData/TestCordova-bmqmtqdeafhklhbjqbnmochohdoe/Build/Products/Debug-iphonesimulator/libCordova.a

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `O' in: -Obj-C
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1

私はこれによって引き起こされたエラーを見つけます'Add -all_load and -Obj-C - for the "Other Linker Flags" value'

4

1 に答える 1

0

それは-ObjC、ではなく、である必要があり-Obj-Cます。これがAppleのドキュメントの例です。

(また、コンパイラエラーのスクリーンショットを表示しないでください。サイズが非常に小さいため、ほとんど読めません。テキストをコピーしてエラーログから貼り付けることができます。)

于 2013-01-06T09:43:52.983 に答える