Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

amishra7

macrumors newbie
Original poster
Aug 29, 2008
8
0
Hi

My code is running fine on Iphone Simulator OS 2.1. But when I am trying to install it on My real Device its give following five error.


#error "Unknown architecture." . Related to FixMath.h
#error SIGDIGLEN undeclered here(Not in a function). Related to fp.h
#error hfs/hfs_format.h No such File or Directory . Related to hfsvolume.h
#error Syntax error before (*)Token Related to MachineExceptions.h.

As I am new to Iphone Development so couldnt figure out the exact reason of this.I followed each steps carefully to run application on Device.

Please Help me.

Regards
Amit
 

amishra7

macrumors newbie
Original poster
Aug 29, 2008
8
0
All above mentioned file i.e. fixmath.h ,fp.h ,HfsVolumes.h and machineexception.h are the C header Source File.I am not sure why they are creating the issue. Please help me pals I will be highly thankful.

Regards
Amit
 

Ron C

macrumors member
Jul 18, 2008
61
0
Chicago-area
Does your project have C code or are you linking in a library and using the header files to provide the API to that library? A library would probably not be built for the appropriate processor in the iPhone/iPod touch unless you've very specifically had it built for such.

Ron C
 

amishra7

macrumors newbie
Original poster
Aug 29, 2008
8
0
Hi Ron

firstly i would like to appreciate you for your Response.

I have included the existing frame works of iPhone namely
<Foundation/Foundation.h>
<UIKit/UIKit.h>
<CoreLocation/CoreLocation.h>
<AddressBook/AddressBook.h>
<AddressBookUI/AddressBookUI.h>

I have included above files in my programs (.pch) file.say myprogram.pch.
when i tried to build and compile on simulator its work fine. but on Real Device it shows me above mentioned error.I included the header files in same order as i mentioned above . and error come next to the line where i included foundation.h.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
For some reason there are some header files that are present in the simulator SDK but are not present in the device SDK. fp.h is like this, for instance.

If you #include those headers or use functions that come from those headers you cannot deploy on the device. You need to find functions that are available on the device for these purposes.
 

amishra7

macrumors newbie
Original poster
Aug 29, 2008
8
0
Hi

Thanks to all of you for your valuable suggestions.
Acutely on of my friend with the same code, provisioning profile and certificates when tried to test the code on a Iphone device of US where the network provider is AT n T if i am not wrong the code works and he is able to install the app on Device. And he has the same version of Iphone OS as I have i.e. 2.1. But In Indian Device its does not work and gives above mentioned error.Is that may be the case of unlocking the Iphone.Is there is any particular thing we have to do before testing the third party app on Iphone.As my friend told me that in USA the AT nT take care of unlocking iphone. I am not sure How much I am right. Can any body tell me is that might be the case.If yes what step do i need to follow. Thanks in advance.

Regards
Amit
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Let's see if I have this right. Your friend has an iPhone (doesn't matter where) and has added that device in the developer portal and generated a provisioning profile for it and the app in question. He has given you this profile and you are trying to use it?

If that is the case it won't work: provisioning profiles are per-device. You need to get him to add your device and generate a profile for it.
 

amishra7

macrumors newbie
Original poster
Aug 29, 2008
8
0
Let's see if I have this right. Your friend has an iPhone (doesn't matter where) and has added that device in the developer portal and generated a provisioning profile for it and the app in question. He has given you this profile and you are trying to use it?

If that is the case it won't work: provisioning profiles are per-device. You need to get him to add your device and generate a profile for it.


well actully its me who created the provisioning profile ,certificate,and registered both the devices (mine and my friends Device)on Program portal at developer.apple.com By using the same provisioning Profile and certificates the application gives me error at my Device but worked with his Device.As much as i know we do not need to create the different provisioning profile for the different Device.We just have to relate the device with provisioning profile at apple program portal. Even I created a different provisioning Profile in which i just included only the Device Id of my Device but that also does not work.

Regards
Amit
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.