Unable to build iOS project in latest visual studio
iOS project compile successfully
iOS project is not compiling result in errors
``
Severity Code Description Project File Line Suppression State
Error Failed to load ibtool log file
obj/iPhone/Release/ibtool-manifests/LaunchScreen.storyboardc` Failed to parse PList data type: MyApp.iOS
Severity Code Description Project File Line Suppression State
Error ibtool exited with code 255 MyApp.iOS
Severity Code Description Project File Line Suppression State
Error objc[1517]: vm_allocate trampolines failed (268435459)
2019-10-05 14:46:53.042 ibtoold[1516:13794] * Terminating app due to uncaught exception 'IBPlatformToolFailureException', reason: 'The tool closed the connection
Last command:
_ON_QUEUE_sendMessage:toChannelReturningError:during:
Backtrace of last command:
0 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit)
1 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke (in IDEInterfaceBuilderKit)
2 _dispatch_client_callout (in libdispatch.dylib)
3 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
4 DVTDispatchSync (in DVTFoundation)
5 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit)
6 -[IBAbstractPlatformToolProxy loadExtensions:] (in IDEInterfaceBuilderKit)
7 -[IBAbstractPlatformToolProxy didLaunchWithPipeToKeepAlive:] (in IDEInterfaceBuilderKit)
8 -[IBAbstractSimulatorToolCoreSimulatorExecutionContext handshakeWithPlatformToolWithPID:hostToRemoteFIFO:remoteToHostFIFO:toolProxyClass:proxyDelegate:launchContext:optionalLifelinePipe:shouldRaiseOnFailures:error:] (in IDEInterfaceBuilderCocoaTouchIntegration)
9 -[IBSimulatorToolCoreSimulatorCLIExecutionContext launchAndConnectToToolWithLaunchContext:toolProxyClass:proxyDelegate:shouldRaiseOnFailures:error:] (in IDEInterfaceBuilderCocoaTouchIntegration)
10 +[IBAbstractInterfaceBuilderPlatformToolManager _THREADSAFE_launchNewToolWithLaunchContext:executionContext:toolProxyClass:proxyDelegate:failureContext:requestingMethod:error:forReason:] (in IDEInterfaceBuilderKit)
11 -[IBAbstractInterfaceBuilderPlatformToolManager launchNewToolWithDescription:error:forReason:] (in IDEInterfaceBuilderKit)
12 -[IBCocoaTouchToolManager launchNewToolWithDescription:error:forReason:] (in IDEInterfaceBuilderCocoaTouchIntegration)
13 -[IBAbstractInterfaceBuilderPlatformToolManager cachedToolIncrementBusyWithDescription:error:forReason:] (in IDEInterfaceBuilderKit)
14 -[IBCocoaTouchToolManager cachedToolIncrementBusyWithDescription:error:forReason:] (in IDEInterfaceBuilderCocoaTouchIntegration)
15 __122-[IBCocoaTouchXIBDocumentCompiler compiledKeyedObjectsDataWithMarshallingContext:archivingContext:diagnosticsBlock:error:]_block_invoke.95 (in IDEInterfaceBuilderCocoaTouchIntegration)
16 _dispatch_client_callout (in libdispatch.dylib)
17 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
18 DVTDispatchSync (in DVTFoundation)
19 -[IBCocoaTouchXIBDocumentCompiler compiledKeyedObjectsDataWithMarshallingContext:archivingContext:diagnosticsBlock:error:] (in IDEInterfaceBuilderCocoaTouchIntegration)
20 __121-[IBCocoaTouchXIBDocumentCompiler compiledPackageWithOptions:marshallingContext:archivingContext:diagnosticsBlock:error:]_block_invoke (in IDEInterfaceBuilderCocoaTouchIntegration)
21 -[IBDocumentCompiler invokeWhileUsingSourceAsIntermediateDocument:] (in IDEInterfaceBuilderKit)
22 -[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:] (in IDEInterfaceBuilderKit)
23 -[IBCocoaTouchXIBDocumentCompiler compiledPackageWithOptions:marshallingContext:archivingContext:diagnosticsBlock:error:] (in IDEInterfaceBuilderCocoaTouchIntegration)
24 -[IBCocoaTouchStoryboardDocumentCompiler compileCompilationUnit:options:forSceneCompilationGroup:error:] (in IDEInterfaceBuilderCocoaTouchIntegration)
25 -[IBStoryboardSceneCompilationGroup compilationResultsForCompilationUnits:options:returningErrors:] (in IDEInterfaceBuilderKit)
26 -[IBStoryboardDocumentCompiler compileUnitsFromCompilationGroups:filter:options:errors:] (in IDEInterfaceBuilderKit)
27 __78-[IBStoryboardDocumentCompiler compileContentsOfStoryboardWithOptions:errors:]_block_invoke (in IDEInterfaceBuilderKit)
28 IBWithAutoInvalidationPool (in IDEInterfaceBuilderKit)
29 -[IBStoryboardDocumentCompiler compileContentsOfStoryboardWithOptions:errors:] (in IDEInterfaceBuilderKit)
30 -[IBStoryboardDocumentCompiler internalCompileWithOptions:error:] (in IDEInterfaceBuilderKit)
31 -[IBCocoaTouchStoryboardDocumentCompiler internalCompileWithOptions:error:] (in IDEInterfaceBuilderCocoaTouchIntegration)
32 __57-[IBStoryboardDocumentCompiler compileWithOptions:error:]_block_invoke (in IDEInterfaceBuilderKit)
33 __85-[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:]_block_invoke (in IDEInterfaceBuilderKit)
34 -[IBDocumentCompiler invokeWithIntermediateDocument:] (in IDEInterfaceBuilderKit)
35 -[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:] (in IDEInterfaceBuilderKit)
36 -[IBStoryboardDocumentCompiler compileWithOptions:error:] (in IDEInterfaceBuilderKit)
37 +[IBDocumentCompiler compileContentsOfDocument:options:error:] (in IDEInterfaceBuilderKit)
38 __47-[IBDocument compiledPackageWithOptions:error:]_block_invoke (in IDEInterfaceBuilderKit)
39 -[IBDocumentAutolayoutManager ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit)
40 -[IBDocument compiledPackageWithOptions:error:] (in IDEInterfaceBuilderKit)
41 -[IBDocument compileAndWriteToPath:withOptions:error:] (in IDEInterfaceBuilderKit)
42 IBCompileDocumentForSingleTargetDevice (in ibtoold)
43 -[IBCLIInterfaceBuilderToolPersona invokeArguments:outputDictionary:] (in ibtoold)
44 -[IBCLIInterfaceBuilderToolPersona runSingleInvocation:outputtingToFileHandle:andVerifyingEnvironment:] (in ibtoold)
45 IBCLIServerRunSingleInvocation (in ibtoold)
46 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke_2 (in ibtoold)
47 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke (in ibtoold)
48 -[IBCLIErrorForwarder forwardErrorOutputToDescriptor:whileInvokingBlock:] (in ibtoold)
49 IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess (in ibtoold)
50 main (in ibtoold)
51 start (in libdyld.dylib)
'
* First throw call stack:
(
0 CoreFoundation 0x00007fff4c211b79 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff769aa3c6 objc_exception_throw + 48
2 CoreFoundation 0x00007fff4c22b9cd -[NSException raise] + 9
3 IDEInterfaceBuilderKit 0x000000010330d000 -[IBAbstractPlatformToolProxy _errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:shouldRaiseOnFailures:waitForCrashLog:] + 1462
4 IDEInterfaceBuilderKit 0x000000010330ca20 -[IBAbstractPlatformToolProxy errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:] + 94
5 IDEInterfaceBuilderKit 0x000000010330e6d5 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] + 213
6 IDEInterfaceBuilderKit 0x000000010330e5d2 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke + 38
7 libdispatch.dylib 0x00007fff7812263d _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff7812e129 _dispatch_lane_barrier_sync_invoke_and_complete + 60
9 DVTFoundation 0x0000000103d63d59 DVTDispatchSync + 208
10 IDEInterfaceBuilderKit 0x000000010330e4f5 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] + 237
11 IDEInterfaceBuilderKit 0x000000010330e799 -[IBAbstractPlatformToolProxy loadExtensions:] + 125
12 IDEInterfaceBuilderKit 0x000000010330c0c1 -[IBAbstractPlatformToolProxy didLaunchWithPipeToKeepAlive:] + 336
13 IDEInterfaceBuilderCocoaTouchIntegration 0x0000000115532a93 -[IBAbstractSimulatorToolCoreSimulatorExecutionContext handshakeWithPlatformToolWithPID:hostToRemoteFIFO:remoteToHostFIFO:toolProxyClass:proxyDelegate:launchContext:optionalLifelinePipe:shouldRaiseOnFailures:error:] + 697
14 IDEInterfaceBuilderCocoaTouchIntegration 0x000000011556c8be -[IBSimulatorToolCoreSimulatorCLIExecutionContext launchAndConnectToToolWithLaunchContext:toolProxyClass:proxyDelegate:shouldRaiseOnFailures:error:] + 2 MyApp.iOS
````
I recently saw a similar issue, and my workaround was to delete the LaunchScreen.storyboard
but not commit the change. You might want to make sure you're using the latest Xamarin packages on your Mac. Also, restarting Mac and/or VS usually fixes small issues.
What do you mean by
delete the
LaunchScreen.storyboard
but not commit the change.
I'm indeed using latest mac os, itunes, xcode, xamarin packages, visual studio etc and also did restart mac, visual studio, windows multiple times, clean project, delete bin and obj folder, delete mtbs folder on mac but still issue persist.
later I resolved this issue by changing build action from InterfaceDefinition
to None
then I got different error something about assets, to resolved that I also delete XSAppIconAssets
and XSLaunchImageAssets
key from info.plist
now everything seems to be working perfectly fine.
I don't know how icon is still showing up even though XSAppIconAssets
and XSLaunchImageAssets
not exist anymore in info.plist
.
Hi @uzairali001, thanks for reporting!
I've tried to reproduce it but unfortunately am not able to. Although I know you say to just go through steps 1 and 2, this behavior is not visible to me. Would you maybe able to add a repro project to issue that does show this issue? That way we might be able to figure out what is going wrong for you.
Would you maybe also be able to add your full Visual Studio info by going to Help > About... and click the Copy Info button?
I had the same error. I updated macOS
Catalina and Xcode 11 and the error was resolved.
@uzairali001 is that something that you are able to confirm?
Indeed the problem is resolved by updating macOS to Catalina.
in case this helps someone who, like me comes across this bug because they encountered the titular error... in my case, it was because, in my interface.storyboard, the destination IDs of the button connection actions were other than the ID of the overall controller. Once those connection actions were pointing back to their parent, everything compiled just fine.
Anyone else runs into this after an OS upgrade or Xcode upgrade, please try
delete files here ~/Library/Developer/Xcode/DerivedData
Then restart xcode. Visual Studio should build and run you code again.
Most helpful comment
I had the same error. I updated macOS
Catalina and Xcode 11 and the error was resolved.