x


iPad simulator and Objective-C code

I was hoping to be able to utilize quick turnaround with Cocoa code within the iPad Simulator with Unity iPhone 1.7.

If I just build the project (from within Unity) and build in XCode as-is, it works.

If I start adding my own Objective C classes, it doesn't. It throws a link error:

".obj_class_name_MyClass", referenced from:
literal-pointer@__OBJC@__cls_refs@MyClass in AppController.o
Symbol(s) not found

The same code/project works if I set the player settings to build for the device instead of the simulator.

Is this expected and/or known behavior?

more ▼

asked Apr 26 '10 at 08:29 PM

Tetrad gravatar image

Tetrad
7.2k 27 37 89

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You have to add any new files you create to both the Unity-iPhone target as well as the Unity-iPhone-Simulator target.

more ▼

answered May 04 '10 at 04:55 PM

Tetrad gravatar image

Tetrad
7.2k 27 37 89

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x360
x40
x30

asked: Apr 26 '10 at 08:29 PM

Seen: 1928 times

Last Updated: Apr 26 '10 at 08:29 PM