如何在Xcode中解决这个Mach o链接器错误?

时间:2014-08-22 12:01:36

标签: ios objective-c iphone linker xcode5

我无法为模拟器编译我的项目 我收到Apple Mach-O-Linker错误。我无法解决这个问题。我正在使用xcode 5。 我在这里得到了同样的问题How to solve Mach-O-Linker error in ios7 & Xcode 5.0.1并给出了正确答案,但在我的情况下,有" \"在框架搜索路径中。

         Ld /Users/mohit/Library/Developer/Xcode/DerivedData/Story-                    cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator/Story.app/Story normal i386
         cd "/Users/mohit/Desktop/ys_xcode/YS Code/Story 34"
      export IPHONEOS_DEPLOYMENT_TARGET=7.1
      export      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/i        PhoneSimulator7.1.sdk -L/Users/mohit/Library/Developer/Xcode/DerivedData/Story-  cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator -   F/Users/mohit/Library/Developer/Xcode/DerivedData/Story-    cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator -  F/Users/mohit/Documents/FacebookSDK -  F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/mohit/Desktop/ys_xcode/YS\ Code/Story\ 34 -filelist   /Users/mohit/Library/Developer/Xcode/DerivedData/Story-    cfxrnsmqxnasuafarmhvchwphnxa/Build/Intermediates/Story.build/Debug-  iphonesimulator/Story.build/Objects-normal/i386/YourStory.LinkFileList -Xlinker -  objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs   -mios-simulator-version-min=7.1 -framework XCTest -framework Social -framework CoreData -  framework GoogleOpenSource -framework CoreMotion -framework AssetsLibrary -framework    AddressBook -framework FacebookSDK -lxml2 -framework GooglePlus -Xlinker -dependency_info -  Xlinker /Users/mohit/Library/Developer/Xcode/DerivedData/Story-  cfxrnsmqxnasuafarmhvchwphnxa/Build/Intermediates/Story.build/Debug-iphonesimulator/Story.build/Objects-normal/i386/Story_dependency_info.dat -o     /Users/mohit/Library/Developer/Xcode/DerivedData/Story-     cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator/Story.app/Story

Mach-O-Linker错误消息

      ld: building for iOS Simulator, but linking against dylib built for MacOSX file   '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for   architecture i386
      clang: error: linker command failed with exit code 1 (use -v to see invocation)]

非常感谢帮助!

0 个答案:

没有答案