2013-02-13 17 views
8

हालांकि मैं उद्देश्य-सी में विकास करने के लिए परिचित हूं, फिर भी जब मैं त्रुटि व्याख्या की बात करता हूं तो मैं खुद को एक n00b का थोड़ा सा मानता हूं। मैं काम के लिए एक आवेदन पर काम कर रहा हूं कि अन्य भी काम कर रहे हैं। मेरा मानना ​​है कि हमारे पास एक्सकोड के विभिन्न संस्करण हो सकते हैं, और एक डेवलपर के पास एक पीसी है (अन्य और मेरे पास मैकबुक है)। मैं एक्सकोड 4.5.1 का उपयोग कर रहा हूँ।छिड़काव फैट फ़ाइल लिंकर त्रुटि

समस्या

मैं निम्नलिखित एप्पल मच-ओ लिंकर त्रुटि हो रही है:

Ld build/Debug-iphonesimulator/MyApp.app/MyApp normal i386 cd /Users/me/Documents/MyApp/trunk 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:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/me/Documents/MyApp/trunk/build/Debug-iphonesimulator -F/Users/me/Documents/MyApp/trunk/build/Debug-iphonesimulator -F/Users/me/Documents/MyApp/trunk -filelist /Users/me/Documents/MyApp/trunk/build/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/i386/MyApp.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -lsqlite3.0 -v -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 -framework MobileCoreServices -weak_framework Accounts -weak_framework AdSupport -weak_framework Social -framework CoreBluetooth -framework MediaPlayer -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -o /Users/me/Documents/MyApp/trunk/build/Debug-iphonesimulator/MyApp.app/MyApp

Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) Target: i386-apple-darwin11.4.2 Thread model: posix "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch i386 -ios_simulator_version_min 5.1.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -o /Users/me/Documents/MyApp/trunk/build/Debug-iphonesimulator/MyApp.app/MyApp -lcrt1.o -L/Users/me/Documents/MyApp/trunk/build/Debug-iphonesimulator -filelist /Users/me/Documents/MyApp/trunk/build/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/i386/MyApp.LinkFileList -objc_abi_version 2 -lsqlite3.0 -no_implicit_dylibs -framework MobileCoreServices -weak_framework Accounts -weak_framework AdSupport -weak_framework Social -framework CoreBluetooth -framework MediaPlayer -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -force_load /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a -framework Foundation -lobjc -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/4.1/lib/darwin/libclang_rt.ios.a -F/Users/me/Documents/MyApp/trunk/build/Debug-iphonesimulator -F/Users/me/MyApp/trunk ld: truncated fat file. Slice from 68 to 2783300 is past end of file with length 135 for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

:

ld: truncated fat file. Slice from 68 to 2783300 is past end of file with length 135 for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

पूर्ण त्रुटि के रूप में (नाम बदला पथ) इस प्रकार है

मुझे इस त्रुटि पर कोई दस्तावेज नहीं मिला है। समस्या क्या है? मैं इस तरह की एक त्रुटि को कैसे हल करूं?

उत्तर

0

मैं इस सवाल का जवाब कहीं पढ़ा है,

फ़ाइलों और फ़ोल्डरों (आपके मामले में कुछ ढांचा) करने के लिए सांकेतिक लिंक वसा फ़ाइलों में बदल जाता है जब वे/एक्स विंडोज के लिए मैक ओएस से ले जाया जाता है। इसलिए जब भी हम आपके मैक से विंडोज़ में कॉपी-पेस्ट/चेकआउट प्रोजेक्ट फ्रेमवर्क करते हैं या इसके विपरीत यह बदल जाता है, फाइलें सिम्लिंक के संदर्भ में संशोधित होती हैं।

तो आप क्या कर सकते हैं बस अपनी प्रोजेक्ट फाइलों की जांच करें और अकेले ढांचे को प्रतिस्थापित करें (कृपया ध्यान दें कि जिस ढांचे को आप प्रतिस्थापित करने जा रहे हैं उसे ताजा डाउनलोड किया जाना चाहिए या मैक से कहीं कॉपी नहीं किया जाना चाहिए, न कि विन्डोज़)।

उम्मीद है कि यह किसी की मदद करेगा!

संबंधित मुद्दे