iphone lib build fails: iPhone Developer: no such identity nuke: terminating on command error (return code 1)

18 views
Skip to first unread message

mhennemeyer

unread,
Mar 23, 2009, 11:23:42 AM3/23/09
to Programming Nu
Hi and Hello first, as this is my first post in this group.

I tried to build the the static lib for iphone development, by
executing "nuke"

from the nu/iphone folder.

The command fails:

iPhone Developer: no such identity
nuke: terminating on command error (return code 1)

I'm not participating in the (paid) iphone developer program yet,
but i think it should be possible to get nu working
with the simulator. Or not?

Thanks for your help

Matthias

Blake Winton

unread,
Mar 23, 2009, 11:38:23 AM3/23/09
to program...@googlegroups.com
On 3/23/09 11:23 AM, mhennemeyer wrote:
> I tried to build the the static lib for iphone development, by
> executing "nuke"
>
> from the nu/iphone folder.
>
> The command fails:
>
> iPhone Developer: no such identity
> nuke: terminating on command error (return code 1)
>
> I'm not participating in the (paid) iphone developer program yet,
> but i think it should be possible to get nu working
> with the simulator. Or not?

I believe the instructions you're looking for are at:
http://www.saurik.com/id/8

:)

Later,
Blake.

Jeff Buck

unread,
Mar 23, 2009, 12:05:19 PM3/23/09
to Programming Nu
Hi Matthias,

The default is to build the static library for the device. To build
for the simulator instead, change the first line in the Nukefile in
the iphone directory to this:

(set platform "iPhoneSimulator")

and run nuke again.


Jeff

mhennemeyer

unread,
Mar 24, 2009, 4:44:31 AM3/24/09
to Programming Nu
Thanks for your support!

Setting platform to "iPhoneSimulator" solved my noob prob.

But i instantly ran into the next issue: (Still trying to build the
iphone lib)

cannot exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/
usr/bin/arm-apple-darwin9-gcc-4.0.1': No such file or directory

I'm quite sure that this is not a nu-related prob but maybe you can
help anyhow.

Thanks again.

Matthias

btw: I asked google but none of the proposed solutions (all related to
network probs) helped me.

reddaly

unread,
Mar 24, 2009, 12:40:40 PM3/24/09
to Programming Nu
I was also unable to build Nu for the iPhone Simulator, but for
different reasons. I had to compile libffi.a for the simulator and
add that to my project. I was still getting a linker error because
mach_override functions were not compiled, so I had to comment out a
line in nu_disableNSLog() function. Anyway, now I am compiling and
linking against Nu for the iPhone and the simulator, but it did
require those two adjustments. Could it be that libffi no longer
ships with the simulator sdk?

As for your problem:

On Mar 24, 1:44 am, mhennemeyer <mhenneme...@googlemail.com> wrote:
> Thanks for your support!
>
> Setting platform to "iPhoneSimulator" solved my noob prob.
>
> But i instantly ran into the next issue: (Still trying to build the
> iphone lib)
>
> cannot exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/
> usr/bin/arm-apple-darwin9-gcc-4.0.1': No such file or directory'

If you are building for the simulator, it should be building for the
i386 architecture. It looks like the above gcc is for ARM (the iphone
architecture). How are you setting the platform? What I did was
change the top line of the NukeFile in the iphone directory from (set
platform "iPhoneOS") to (set platform "iPhoneSimulator").

>
> I'm quite sure that this is not a nu-related prob but maybe you can
> help anyhow.
>
> Thanks again.
>
> Matthias

best of luck,
Red

Tim Burks

unread,
Mar 24, 2009, 12:47:07 PM3/24/09
to program...@googlegroups.com

Hi reddaly,

Sorry for the trouble w/ this, I haven't been using Nu with the
simulator, but I would like to get this fixed.

It seems that libffi is still available, but maybe we're not linking
against it properly:

[Oxygen:/Developer/Platforms/iPhoneSimulator.platform] tim% find . -
name "*libffi*"
./Developer/SDKs/iPhoneSimulator2.0.sdk/usr/lib/libffi.dylib
./Developer/SDKs/iPhoneSimulator2.1.sdk/usr/lib/libffi.dylib
./Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/lib/libffi.dylib
./Developer/SDKs/iPhoneSimulator2.2.sdk/usr/lib/libffi.dylib

- Tim
Reply all
Reply to author
Forward
0 new messages