【问题标题】:Buil Error with AppleMach-Olinker Error iOS使用 Apple Mach-O'Linker 错误 iOS 构建错误
【发布时间】:2013-04-09 18:39:09
【问题描述】:

谁能帮我解决这个问题?

ld“/Users/orkideh/Library/Developer/Xcode/DerivedData/New_GUI-ffkeokshboqifhchxwfwfwbauahh/Build/Products/Debug-iphonesimulator/New GUI.app/New GUI”正常i386 cd "/Users/orkideh/Downloads/New GUI" setenv IPHONEOS_DEPLOYMENT_TARGET 6.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/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6。 1.sdk -L/Users/orkideh/Library/Developer/Xcode/DerivedData/New_GUI-ffkeokshboqifhchxwfwfwbauahh/Build/Products/Debug-iphonesimulator -F/Users/orkideh/Library/Developer/Xcode/DerivedData/New_GUI-ffkeokshboqifhchxwfwfwbauahh/Build/ Products/Debug-iphonesimulator -filelist "/Users/orkideh/Library/Developer/Xcode/DerivedData/New_GUI-ffkeokshboqifhchxwfwfwbauahh/Build/Intermediates/New GUI.build/Debug-iphonesimulator/New GUI.build/Objects-normal/i386/New GUI.LinkFileList" -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreMedia -framework Accounts -framework Social -framework UIKit -framework Foundation -framework CoreGraphics -framework iAd -o "/Users/orkideh/Library/Developer/X代码/DerivedData/New_GUI-ffkeokshboqifhchxwfwfwbauahh/Build/Products/Debug-iphonesimulator/New GUI.app/New GUI"

架构 i386 的未定义符号: “_main”,引用自: 从 crt1.o 开始 ld:未找到体系结构 i386 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

我不知道错误是什么以及我应该如何解决这个问题。感谢任何帮助

【问题讨论】:

    标签: ios xcode4.6


    【解决方案1】:

    我认为您缺少一些框架,所以请导入这些框架...

    1. CoreGraphics
    2. Social
    3. Accounts etc.
    

    告诉我你导入了哪个框架。 ?

    【讨论】:

    • 我检查了我正在使用的所有框架!首先将它们全部移动,然后再次添加它们,但仍然相同:(
    • 请关闭你的xcode并打开它。因为我遇到了这个问题。我用这种方式得到了解决方案。之后我的xcode工作正常。
    猜你喜欢
    • 2017-12-20
    • 2014-05-18
    • 1970-01-01
    • 1970-01-01
    • 2014-11-17
    • 1970-01-01
    • 1970-01-01
    • 2014-12-03
    • 1970-01-01
    相关资源
    最近更新 更多