iDevice Build Error

When I try to build an iPad/iPhone app, Corona throws an error and I have to force quit the application. I followed the dated instruction on building to iOS from the docs, but I feel they are missing something. Here is the error:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2011-12-21 20:39:23.520 Corona Simulator[11288:2403] *** -[NSPlaceholderString initWithUTF8String:]: NULL cString
2011-12-21 20:39:23.522 Corona Simulator[11288:2403] (
        0   CoreFoundation                      0x9794bd87 __raiseError + 231
        1   libobjc.A.dylib                     0x956f6149 objc_exception_throw + 155
        2   CoreFoundation                      0x978b3619 +[NSException raise:format:arguments:] + 137
        3   CoreFoundation                      0x978b3589 +[NSException raise:format:] + 57
        4   Foundation                          0x94491396 -[NSString initWithUTF8String:] + 90
        5   Corona Simulator                    0x0003082a Corona Simulator + 194602
        6   Corona Simulator                    0x0003053a Corona Simulator + 193850
        7   Corona Simulator                    0x0002b75e Corona Simulator + 173918
        8   Corona Simulator                    0x0002c285 Corona Simulator + 176773
        9   Corona Simulator                    0x00013b2f Corona Simulator + 76591
        10  Corona Simulator                    0x0000d590 Corona Simulator + 50576
        11  CoreFoundation                      0x978a1091 -[NSObject performSelector:withObject:] + 65
        12  AppKit                              0x96b1fcb3 -[NSApplication sendAction:to:from:] + 232
        13  AppKit                              0x96b1fb90 -[NSControl sendAction:to:] + 102
        14  AppKit                              0x96b1fa93 -[NSCell _sendActionFrom:] + 160
        15  AppKit                              0x96b1ee50 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2295
        16  AppKit                              0x96ba2351 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 501
        17  AppKit                              0x96b1d893 -[NSControl mouseDown:] + 943
        18  AppKit                              0x96ae67b1 -[NSWindow sendEvent:] + 7533
        19  AppKit                              0x96a7e6ff -[NSApplication sendEvent:] + 4788
        20  AppKit                              0x96a0fc82 -[NSApplication run] + 1007
        21  AppKit                              0x96ca418a NSApplicationMain + 1054
        22  Corona Simulator                    0x00002875 Corona Simulator + 6261
)

What error are you getting?

Those build.settings appear fine.

Are you using any non English characters in the name at all?

Peach :)

Hi Peach,

not hijacking the original poster because it is my doubt also but isn`t missing some commas after that brackets in the final of the code?

1
2
3
4
5
6
7
UIAppFonts = 
                        {
                                "feast.ttf"
                        }
                } -- here one comma
        } <-- here one comma
}

Yes, well, kind of - it should have commas but these settings will still work fine. (Just built to confirm using these and switching out the font name with one I had on hand, all fine.)

Peach :)

@Peach, Thank you for the info! I appreciate that.

So, the problem of him would be the font name? :\

TY!
Cheers,
Rodrigo.

Hey Peach,

That large blot of text from the terminal is the only sort of error I get. After that pops up, the dialog box that connects to Corona just stays open. I left it on for about two hours yesterday until I figured out that something was wrong.

Can I use numbers in the name? And what is wrong with my font? Is it the name of the font or the type of font?

Nevermind its not the font, I completely removed the UIAppFonts table and I got the same output to the terminal.

Numbers in the name are fine and no, it isn't a font issue, so long as the font is in the file it's all good.

When was the last time you successfully built the project? (Or is this the first time?)

What "blot" are you getting in the terminal?

This is my first time building to iOS. I have always been able to build to Android.

Here is the "blot" from the terminal:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2011-12-21 20:39:23.520 Corona Simulator[11288:2403] *** -[NSPlaceholderString initWithUTF8String:]: NULL cString
2011-12-21 20:39:23.522 Corona Simulator[11288:2403] (
        0   CoreFoundation                      0x9794bd87 __raiseError + 231
        1   libobjc.A.dylib                     0x956f6149 objc_exception_throw + 155
        2   CoreFoundation                      0x978b3619 +[NSException raise:format:arguments:] + 137
        3   CoreFoundation                      0x978b3589 +[NSException raise:format:] + 57
        4   Foundation                          0x94491396 -[NSString initWithUTF8String:] + 90
        5   Corona Simulator                    0x0003082a Corona Simulator + 194602
        6   Corona Simulator                    0x0003053a Corona Simulator + 193850
        7   Corona Simulator                    0x0002b75e Corona Simulator + 173918
        8   Corona Simulator                    0x0002c285 Corona Simulator + 176773
        9   Corona Simulator                    0x00013b2f Corona Simulator + 76591
        10  Corona Simulator                    0x0000d590 Corona Simulator + 50576
        11  CoreFoundation                      0x978a1091 -[NSObject performSelector:withObject:] + 65
        12  AppKit                              0x96b1fcb3 -[NSApplication sendAction:to:from:] + 232
        13  AppKit                              0x96b1fb90 -[NSControl sendAction:to:] + 102
        14  AppKit                              0x96b1fa93 -[NSCell _sendActionFrom:] + 160
        15  AppKit                              0x96b1ee50 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2295
        16  AppKit                              0x96ba2351 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 501
        17  AppKit                              0x96b1d893 -[NSControl mouseDown:] + 943
        18  AppKit                              0x96ae67b1 -[NSWindow sendEvent:] + 7533
        19  AppKit                              0x96a7e6ff -[NSApplication sendEvent:] + 4788
        20  AppKit                              0x96a0fc82 -[NSApplication run] + 1007
        21  AppKit                              0x96ca418a NSApplicationMain + 1054
        22  Corona Simulator                    0x00002875 Corona Simulator + 6261
)

Have you been able to successfully build this particular app for Android? (With a modified build.settings file, obviously.)

Peach :)

Hey Peach,
Actually, I use the same build.settings file for my Android builds. I recently build to Android again this morning.

views:1668 update:2011/12/29 9:44:01
corona forums © 2003-2011