Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 17, 2008, 01:47 PM   #1
DaveGee
macrumors 6502a
 
Join Date: Jul 2001
SDK: Help Debugging on Device

Okay... Trying to make this simple:

- I've gone thru all the hoops required for me become an iPhone Developer
- I have no problems getting to the iPhone 'Portal'
- I added my device to the devices area.
- I created all the certificates / profiles / etc
- I downloaded the profile that I need to install into iTunes (or Xcode)
- I opened up my existing app (working fine in the simulator)
- Clicked on the top left most icon and did a 'get info'
- (new window opens)
- Clicked on the Build 'pane'

- In the 'Code Signing Identity / Device iPhone 2.0' I put "iPhone Developer: My Name" -- I did this for all the iPhone types listed in the pull down on the left just to be sure.

- In the 'Code Signing Provisioning Profile' I chose 'First' (the name of my provisioning profile) -- I did this for all the iPhone types listed in the pull down on the left just to be sure.

- Closed the 'Project Info' dialog
- Choose Device - iPhone OS 2.0 (Project Settings) ... instead of Simulator - iPhone OS 2.0

- Compiled....
- Got one error...

Code:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/include/sys/cdefs.h:314:15: error: token "\344" is not valid in preprocessor expressions
Whatever THAT means...

- Went back to the 'simulator' build type and did a compile and everything was fine, my app came up in the simulator without any issues.

-------------------

Tried to do the same steps to a simple example app I downloaded from the Apple iPhone examples and got the very same error...

So... Anyone know what I might be doing wrong?

Dave
DaveGee is offline   0 Reply With Quote
Old Jul 17, 2008, 02:19 PM   #2
DaveGee
Thread Starter
macrumors 6502a
 
Join Date: Jul 2001
Well that was a fast fix...

I looked more closely at the /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/include/sys/cdefs.h file and found a 'funky' character where it shouldn't be... I simply fixed it with the correct character and all is well... (sorta)... So much for checking the integrity of the iPhone SDK Installer DMG working flawlessly... (shakes head) It woud seem that file came that way (near as I can tell) from my final download of the iPhone SDK cause I know I didn't touch it...

Now it compiles but returns GOBS of errors about NSXMLDocument not being defined... Nice going Apple!!! Make NSXMLDocument work fine IN THE SIMULATOR and then pull the rug out from under me when I try to compile for the iPhone hardware device... Idiots!!!

Not sure what the heck I'm gonna do now... since I pretty much built my app around NSXMLDocument usage...

D
DaveGee is offline   0 Reply With Quote
Old Jul 17, 2008, 03:12 PM   #3
richard.puckett
macrumors newbie
 
Join Date: Jul 2008
Location: Seattle, WA
http://forums.macrumors.com/showthre...light=touchxml

I haven't used it yet, but it seems like TouchXML is what others are using as a work-around for NSXMLDocument... Does it look like that would work in your situation?
richard.puckett is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Strange Crash on Device and Debugging sleaver iPhone/iPad Programming 6 Aug 3, 2010 05:20 PM
Debug on device - replace old version func iPhone/iPad Programming 2 Jan 2, 2010 01:23 PM
warning while debugging on device newlearner iPhone/iPad Programming 2 Sep 30, 2009 07:18 AM
Debugging on iPhone device itself Wunk iPhone/iPad Programming 1 Nov 24, 2008 11:51 AM
UITabBarItem Category giving error on Device | Debug ONLY!?!? marcolara iPhone/iPad Programming 1 Aug 23, 2008 01:44 PM


All times are GMT -5. The time now is 11:55 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC