- Home /
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?
Answer by Tetrad · May 04, 2010 at 04:55 PM
You have to add any new files you create to both the Unity-iPhone target as well as the Unity-iPhone-Simulator target.
Your answer
![](https://koobas.hobune.stream/wayback/20220612192546im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
IPad Simulator compile error, it can't seem to find my directories. 2 Answers
Does anyone have iPad popover examples? 1 Answer
Attempt at using plugins for iphone 0 Answers
Organizing classes in Unity? 2 Answers
Writing unity ios plugin in Swift 1 Answer