Unable to build for iOS

Trying to create a build for iOS but kept getting the following errors.

2014-07-18 14:31:57.893 Corona Simulator[877:507] *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2014-07-18 14:31:57.894 Corona Simulator[877:507] (

0   CoreFoundation                      0x00007fff8c51425c __exceptionPreprocess + 172

1   libobjc.A.dylib                     0x00007fff8b45ae75 objc_exception_throw + 43

2   CoreFoundation                      0x00007fff8c3d5487 -[__NSArrayM insertObject:atIndex:] + 951

3   Corona Simulator                    0x000000010a921d62 ASN1_tag2str + 2050

4   Corona Simulator                    0x000000010a922146 ASN1_tag2str + 3046

5   Corona Simulator                    0x000000010a8eb620 start + 43232

6   AppKit                              0x00007fff887bd260 -[NSApplication sendAction:to:from:] + 327

7   AppKit                              0x00007fff887d81c8 -[NSMenuItem _corePerformAction] + 394

8   AppKit                              0x00007fff887d7f04 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 117

9   AppKit                              0x00007fff8882740d -[NSMenu _internalPerformActionForItemAtIndex:] + 35

10  AppKit                              0x00007fff88827289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104

11  AppKit                              0x00007fff887cdff6 NSSLMMenuEventHandler + 716

12  HIToolbox                           0x00007fff866b21d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892

13  HIToolbox                           0x00007fff866b1787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385

14  HIToolbox                           0x00007fff866c5880 SendEventToEventTarget + 40

15  HIToolbox                           0x00007fff866fb640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420

16  HIToolbox                           0x00007fff8672e228 SendMenuCommandWithContextAndModifiers + 59

17  HIToolbox                           0x00007fff8672e1d0 SendMenuItemSelectedEvent + 178

18  HIToolbox                           0x00007fff8672e0af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94

19  HIToolbox                           0x00007fff86736085 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 718

20  HIToolbox                           0x00007fff86735cb1 _HandleMenuSelection2 + 446

21  AppKit                              0x00007fff8874062c _NSHandleCarbonMenuEvent + 284

22  AppKit                              0x00007fff8859f52e _DPSNextEvent + 2170

23  AppKit                              0x00007fff8859e89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122

24  AppKit                              0x00007fff8859299c -[NSApplication run] + 553

25  AppKit                              0x00007fff8857d783 NSApplicationMain + 940

26  Corona Simulator                    0x000000010a8e0d74 start + 52

27  ???                                 0x0000000000000005 0x0 + 5

Same!

Can the Corona Team look into this fast?  I need to get a build up soon. Thanks!  

Need to build for iOS asap plz. Thanks!

Hi guys,

We’ll need more info on this to better assist, for example, Corona build #, your system OS and version, whether you’re trying to use plugins or not (and which), etc.

Thanks,

Brent

Can we have some attention to this ?  Thanks!

Tried build 2014.2370 and 2014.2362.

Not using any plugins for my case.

On Mavericks.

How about via public build #2189? Same issue?

The public build works.

I just built with 2372 with no problems on Mavericks.

I don’t have any active plugins at the moment.  Are there any errors in your terminal log?  Are you building with any plugins?

Rob

No plugin for this particular project.  I can’t even get to the the iOS build dialog box.

2014-07-19 06:55:12.416 Corona Simulator[2237:507] WARNING: Could not find certificate for identity ((null)) whose user id is: (null)

2014-07-19 06:55:12.417 Corona Simulator[2237:507] An uncaught exception was raised

2014-07-19 06:55:12.417 Corona Simulator[2237:507] *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2014-07-19 06:55:12.419 Corona Simulator[2237:507] (

0   CoreFoundation                      0x00007fff91cc325c __exceptionPreprocess + 172

1   libobjc.A.dylib                     0x00007fff90c09e75 objc_exception_throw + 43

2   CoreFoundation                      0x00007fff91b84487 -[__NSArrayM insertObject:atIndex:] + 951

3   Corona Simulator                    0x000000010e2049d2 ASN1_tag2str + 2050

4   Corona Simulator                    0x000000010e204db6 ASN1_tag2str + 3046

5   Corona Simulator                    0x000000010e1ce0a0 start + 43168

6   AppKit                              0x00007fff8df6c260 -[NSApplication sendAction:to:from:] + 327

7   AppKit                              0x00007fff8df871c8 -[NSMenuItem _corePerformAction] + 394

8   AppKit                              0x00007fff8df86f04 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 117

9   AppKit                              0x00007fff8dfd640d -[NSMenu _internalPerformActionForItemAtIndex:] + 35

10  AppKit                              0x00007fff8dfd6289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104

11  AppKit                              0x00007fff8df7cff6 NSSLMMenuEventHandler + 716

12  HIToolbox                           0x00007fff8be611d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892

13  HIToolbox                           0x00007fff8be60787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385

14  HIToolbox                           0x00007fff8be74880 SendEventToEventTarget + 40

15  HIToolbox                           0x00007fff8beaa640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420

16  HIToolbox                           0x00007fff8bedd228 SendMenuCommandWithContextAndModifiers + 59

17  HIToolbox                           0x00007fff8bedd1d0 SendMenuItemSelectedEvent + 178

18  HIToolbox                           0x00007fff8bedd0af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94

19  HIToolbox                           0x00007fff8bee5085 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 718

20  HIToolbox                           0x00007fff8bee4cb1 _HandleMenuSelection2 + 446

21  AppKit                              0x00007fff8deef62c _NSHandleCarbonMenuEvent + 284

22  AppKit                              0x00007fff8dd4e52e _DPSNextEvent + 2170

23  AppKit                              0x00007fff8dd4d89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122

24  AppKit                              0x00007fff8dd4199c -[NSApplication run] + 553

25  AppKit                              0x00007fff8dd2c783 NSApplicationMain + 940

26  Corona Simulator                    0x000000010e1c3834 start + 52

27  ???                                 0x0000000000000005 0x0 + 5

)

I have to ask the really dumb question, you do have a provisioning profile selected on the Corona SDK build screen correct?

Rob

Hi Rob,

The issue is that I can’t even get to the Corona build screen to select the provisioning profile.

Do you have a folder in your home directory:  ~/Library/Mobile Devices/Provisioning Profiles

Does it contain a bunch of .mobileprovision files in it?

Rob

Yes.  Do I need to clear them?

It probably wouldn’t hurt to do that and download new ones in case something in there is corrupt.

It’s late on a Friday so I don’t know how much luck I’ll have getting an engineer’s input into this but I will try.

Rob

Hey Rob.  It works now!  Cleared them and re-installed all my profiles again.  :)

Strangely the public build has no issue.  Anyway, thanks a lot for your help!  :)

Hi Rob,

I have a lot of warning message “Could not find certificate for identity ((null)) whose user id is: (null)” with the same error of corona_pro.

I cleared “~/Library/Mobile Devices/Provisioning Profiles” and re-installed all my profiles… no change :frowning:

But strangely all works with Build 2281. Any idea ?

Macbook Pro OSX 10.9.4 (No plugin just a display.newText for test)

Thanks!

@Gispubc, are you crashing before you get to the build screen, or are you getting to the build screen but with a bunch of errors?  Try grabbing today’s build (2373) and see if it gets past it.   We cant’ do much with garbled profiles and such.  Hopefully the change that went it won’t crash when we get a bad one. 

Also have you regenerated your keys, certificates and rebuilt new profiles before downloading them?  Did you quit Corona SDK or reboot along the way?

Build 2373 : A lot of warning “Could not find certificate for identity ((null)) whose user id is: (null)” but all works fine!

Strange!

Thanks Rob :slight_smile: