1
當我試圖運行我的應用程序時,出現了這個奇怪的錯誤。我一直在運行我的應用程序多次,它運行良好。在我爲其中一個segues添加了一個標識符之後,發生了這個錯誤。當我在segue上點擊時,xcode得到了所有的laggy,並且我可能將標識符放在了錯誤的地方,或者刪除了我不應該有的東西。當我點擊名稱中的segue時,main.m或main.h不能記住哪個。我誤認爲它是標識符,並試圖刪除它,所以我可以命名標識符。在滯後消失之後,該選項也消失了。現在我不知道該怎麼做。Apple Mach-O Linker Error主執行程序隱式入口/啓動錯誤
錯誤消息:
Ld /Users/life/Library/Developer/Xcode/DerivedData/MatrixGame- empjzfoeajzkidevdewazcmxapsv/Build/Products/Debug-iphonesimulator/MatrixGame.app/MatrixGame normal x86_64
cd /Users/life/Desktop/MatrixGame
export IPHONEOS_DEPLOYMENT_TARGET=8.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/life/Library/Developer/Xcode/DerivedData/MatrixGame-empjzfoeajzkidevdewazcmxapsv/Build/Products/Debug-iphonesimulator -F/Users/life/Library/Developer/Xcode/DerivedData/MatrixGame-empjzfoeajzkidevdewazcmxapsv/Build/Products/Debug-iphonesimulator -filelist /Users/life/Library/Developer/Xcode/DerivedData/MatrixGame-empjzfoeajzkidevdewazcmxapsv/Build/Intermediates/MatrixGame.build/Debug-iphonesimulator/MatrixGame.build/Objects-normal/x86_64/MatrixGame.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -Xlinker -dependency_info -Xlinker /Users/life/Library/Developer/Xcode/DerivedData/MatrixGame-empjzfoeajzkidevdewazcmxapsv/Build/Intermediates/MatrixGame.build/Debug-iphonesimulator/MatrixGame.build/Objects-normal/x86_64/MatrixGame_dependency_info.dat -o /Users/life/Library/Developer/Xcode/DerivedData/MatrixGame-empjzfoeajzkidevdewazcmxapsv/Build/Products/Debug-iphonesimulator/MatrixGame.app/MatrixGame
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
其實我剛纔檢查,我的主要還是有的,問題是,從那裏我想我點擊了SEGUE我的main.m文件不知何故點擊並更名滯後。我將它命名爲main.m並且它可以工作。感謝您及時的回覆。你的回答讓我知道你的歡迎在哪個方向看 – Laury
,如果它對你有幫助,你可以接受答案。 –