Xcode Main interface "NSMainNibFile~ipad"


#1

Hi,

Each time I remove and add the iOS platform again, my project contains thenin Xcode “NSMainNibFile~ipad” as main interface, which gonna break my app like following if I want to start it:

2016-10-14 14:01:37.917 MyApp[5483:141745] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle </Users/me/Library/Developer/CoreSimulator/Devices/E2DC-9DCC/data/Containers/Bundle/Application/DE511581/Myapp.app> (loaded)’ with name ‘NSMainNibFile~ipad’’
*** First throw call stack:
(
0 CoreFoundation 0x000000010e396f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010dde7deb objc_exception_throw + 48
2 CoreFoundation 0x000000010e396e7d +[NSException raise:format:] + 205
3 UIKit 0x000000010ee66eff -[UINib instantiateWithOwner:options:] + 499
4 UIKit 0x000000010ee6968b -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
5 UIKit 0x000000010eaafbf5 -[UIApplication _loadMainNibFileNamed:bundle:] + 57
6 UIKit 0x000000010eaaffd3 -[UIApplication _loadMainInterfaceFile] + 260
7 UIKit 0x000000010eaae851 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1380
8 UIKit 0x000000010eaabba3 -[UIApplication workspaceDidEndTransaction:] + 188
9 FrontBoardServices 0x0000000113087784 -[FBSSerialQueue _performNext] + 192
10 FrontBoardServices 0x0000000113087af2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
11 CoreFoundation 0x000000010e2c3011 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
12 CoreFoundation 0x000000010e2b8f3c __CFRunLoopDoSources0 + 556
13 CoreFoundation 0x000000010e2b83f3 __CFRunLoopRun + 867
14 CoreFoundation 0x000000010e2b7e08 CFRunLoopRunSpecific + 488
15 UIKit 0x000000010eaab4f5 -[UIApplication _run] + 402
16 UIKit 0x000000010eab030d UIApplicationMain + 171
17 Fluster Beta 0x000000010beb9321 main + 65
18 libdyld.dylib 0x000000011182a92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

So I know the fix, I just have to empty manually the field “Main interface” of my project in Xcode.

But anyone got that problem too? Or any idea where that comes from?


#2

Yes I have it too, i guess a bug in the latest ionic. And thanks for the fix!


#3

I have the same problem, but only when I use the cordova-custom-config plugin.


#4

Same problem with latest Ionic and cordova-custom-config plugin


#5

Look like that stuff is solved with cordova@7.0.0 or cordova-ios@4.4.0. Now, when I remove my platform and add it again, I don’t have to manually empty “Main interface” again