iOS Buid failed with unhandled exception

Hi,

When I try to build iOS version of my game using Cloud build system, i encountered errors “Receiving unhandled NULL exception”.
When I try to build in local machine(mac book) everything is ok. And i can test my game on my iPad.

This is error log i encountered. And I attached Full log file.

4774: [Unity] Initializing Unity extensions:
4775: [Unity] Receiving unhandled NULL exception
4776: [Unity] Launching bug reporter
4777: [Unity] Obtained 28 stack frames.
4778: [Unity] #0 0x00000101436293 in AssetImporter::GetAssetPathName() const
4779: [Unity] #1 0x000001015b9930 in UnityExtensions::Initialize()
4780: [Unity] #2 0x000001019f083e in Application::InitializeProject()
4781: [Unity] #3 0x00000101c4640b in -[EditorApplication applicationDidFinishLaunching:]
4782: [Unity] #4 0x007fff9559bbbc in CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
4783: [Unity] #5 0x007fff9559bb4f in ___CFXRegistrationPost_block_invoke
4784: [Unity] #6 0x007fff9559bac7 in _CFXRegistrationPost
4785: [Unity] #7 0x007fff9559b832 in ___CFXNotificationPost_block_invoke
4786: [Unity] #8 0x007fff955585e2 in -[_CFXNotificationRegistrar find:object:observer:enumerator:]
4787: [Unity] #9 0x007fff95557835 in _CFXNotificationPost
4788: [Unity] #10 0x007fff994b817a in -[NSNotificationCenter postNotificationName:object:userInfo:]
4789: [Unity] #11 0x007fff9280c355 in -[NSApplication _postDidFinishNotification]
4790: [Unity] #12 0x007fff9280c0bf in -[NSApplication _sendFinishLaunchingNotification]
4791: [Unity] #13 0x007fff926c6d99 in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
4792: [Unity] #14 0x007fff926c6843 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
4793: [Unity] #15 0x007fff9950672d in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
4794: [Unity] #16 0x007fff995065a7 in _NSAppleEventManagerGenericHandler
4795: [Unity] #17 0x007fff8b50f261 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*)
4796: [Unity] #18 0x007fff8b50efe8 in dispatchEventAndSendReply(AEDesc const*, AEDesc*)
4797: [Unity] #19 0x007fff8b50ef04 in aeProcessAppleEvent
4798: [Unity] #20 0x007fff86ffeaf9 in AEProcessAppleEvent
4799: [Unity] #21 0x007fff926c2290 in _DPSNextEvent
4800: [Unity] #22 0x007fff926c1226 in -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
4801: [Unity] #23 0x007fff926b5d80 in -[NSApplication run]
4802: [Unity] #24 0x007fff9267f368 in NSApplicationMain
4803: [Unity] #25 0x00000101c5d2d9 in EditorMain(int, char const**)
4804: [Unity] #26 0x00000101c5d999 in main
4805: [Unity] #27 0x00000100001b94 in start
4806: /BUILD_PATH/.mason/buildpacks/unity/bin/compile: line 31: 2758 Abort trap: 6 “${unity_args[@]}”
4807: ! Unity player export failed!
4808: ! build of ‘ios-buildtest’ failed. compile failed
4809: Publishing build 11 of imsoftware/style-pop for target ‘ios-buildtest’…
4810: publishing finished successfully.
4811: uninstalling iOS credentials for imsoftware/style-pop - ios-buildtest
4812: MAC verified OK
4813: Removing certificate…
4814: removing: /BUILD_PATH/Library/MobileDevice/Provisioning Profiles/65693a74-d712-4e02-8b93-929a2c58af9c.mobileprovision
4815: done.
4816: Build step ‘Execute shell’ marked build as failure
4817: postbuildstatus finished successfully.
4818: Finished: FAILURE
4819:

Here is detail information for build.

Local Machine
Unity version : 5.3.6f1 personal
Xcode version : 7.3.1(7D1014)
iOS version : 10.11.6

Cloud build target
Unity version : 5.3.6f1
Xcode version : Xcode 7.3
Use Pre/Post export method

When PostExportMethod called, i try to manipulate xcode build option like below.

string projPath = path + “/Unity-iPhone.xcodeproj/project.pbxproj”;

PBXProject proj = new PBXProject();
proj.ReadFromString(File.ReadAllText(projPath));

string target = proj.TargetGuidByName(“Unity-iPhone”);

// Add custom system frameworks. Duplicate frameworks are ignored.
// needed by our native plugin in Assets/Plugins/iOS
proj.AddFrameworkToProject(target, “Bolts.framework”, false);
proj.AddFrameworkToProject(target, “FBSDKCoreKit.framework”, false);
proj.AddFrameworkToProject(target, “FBSDKLoginKit.framework”, false);
proj.AddFrameworkToProject(target, “FBSDKShareKit.framework”, false);

// Set a custom link flag
proj.SetBuildProperty(target, “OTHER_LDFLAGS”, “$(inherited)”); // Other linker Flags
proj.SetBuildProperty(target, “ENABLE_BITCODE”, “NO”); // Enable Bitcode
proj.SetBuildProperty(target, “CLANG_ENABLE_MODULES”, “YES”); // Enable Modules(C and Objective-C)

File.WriteAllText(projPath, proj.WriteToString());

Am i missing something? Or is it internal crash in Cloud build system?
I will wait for your reply.

Thanks in advance.

I made new build target and retry then build SUCCESS…
I dont know why. but it worked.