Xcode 12.4 simulator problem

With xcode 12.4 and moe 1.7.3 version i can’t launch moe application in simulator from android studio, it gives error like this,
but i can launch and debug in real device.
Please help!

Ld /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/i386/Binary/ios normal i386 (in target ‘ios’ from project ‘ios’)
cd /Users/user/Documents/TestMoe/ios/xcode
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target i386-apple-ios9.3-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -L/Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/Debug-iphonesimulator -F/Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/Debug-iphonesimulator -F/Users/user/Documents/TestMoe/ios/xcode/…//build/moe/sdk/sdk/iphonesimulator -filelist /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/i386/ios.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -object_path_lto -Xlinker /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/i386/ios_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -sectcreate __OATDATA __oatdata /Users/user/Documents/TestMoe/ios/xcode/…//build/moe/main/xcode/Debug-iphonesimulator/i386.oat -sectcreate __ARTDATA __artdata /Users/user/Documents/TestMoe/ios/xcode/…//build/moe/main/xcode/Debug-iphonesimulator/i386.art -segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw -pagezero_size 4096 -lstdc++ -framework MOE -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/ios.app-Simulated.xcent -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/i386/ios_dependency_info.dat -o /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/i386/Binary/ios
ld: can’t open -sectcreate file: /Users/user/Documents/TestMoe/ios/xcode/…//build/moe/main/xcode/Debug-iphonesimulator/i386.oat
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/x86_64/Binary/ios normal x86_64 (in target ‘ios’ from project ‘ios’)
cd /Users/user/Documents/TestMoe/ios/xcode
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-ios9.3-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -L/Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/Debug-iphonesimulator -F/Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/Debug-iphonesimulator -F/Users/user/Documents/TestMoe/ios/xcode/…//build/moe/sdk/sdk/iphonesimulator -filelist /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/x86_64/ios.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -object_path_lto -Xlinker /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/x86_64/ios_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -sectcreate __OATDATA __oatdata /Users/user/Documents/TestMoe/ios/xcode/…//build/moe/main/xcode/Debug-iphonesimulator/x86_64.oat -sectcreate __ARTDATA __artdata /Users/user/Documents/TestMoe/ios/xcode/…//build/moe/main/xcode/Debug-iphonesimulator/x86_64.art -segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw -pagezero_size 4096 -lstdc++ -framework MOE -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/ios.app-Simulated.xcent -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/x86_64/ios_dependency_info.dat -o /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/x86_64/Binary/ios

** BUILD FAILED **

The following build commands failed:
Ld /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/obj/ios.build/Debug-iphonesimulator/ios.build/Objects-normal/i386/Binary/ios normal i386
(1 failure)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:ios:moeMainDebugIphonesimulatorXcodeBuild’.

Task failed, you can find the log file here: /Users/user/Documents/TestMoe/ios/build/moe/xcodebuild/XcodeBuild-main-debug-iphonesimulator.log

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 9s
10 actionable tasks: 2 executed, 8 up-to-date
Multi-OS Engine module build failed

x86 simulator is not supported. Update your xcode project to build for x86_64 simulator only.

Thanks Noisyfox,
i added x86_64 value under “build settings” -> “Architectures”->“Debug” for the “Any iOS Simulator SDK”
:grinning:

1 Like