Discussion Forums  >  Uncategorized

Replies: 12    Views: 691

SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
08/05/11 02:29 AM (14 years ago)

Big Problem iOS 5 and Xcode 4.2

I installed iOS 5 Beta to test my app on my iPhone since by the time my app is on the AppStore most customers will probably be running iOS 5 anyway. I ran the app fine once despite it giving me a few warnings. Now the app will not run (just a black screen) at all. I tried fiddling with Xcode 4 (bad idea) so I've had to start from scratch, new App with new Name. I could cope with that but even the new app gets the same 4 warnings - even with no content in the app yet. Warning (Issues) in Xcode: LLVM GCC 4.2 Warning Property 'subtitle' 'copy' attribute does not match protocol 'MKAnnotation' property ! In File include from [my file location on mac]/BT_Screens/BT-screen_map.m ! Propert 'title' 'copy' attribute does not match protocol 'MKAnnotation' property These warning are repeated 3 times followed by BT_screen_map.m ! Semantic Issue 'BT_mapAnnotation' may not respond to 'initWithCoordinate' PLEASE HELP! I really need to get this app finished, working and out there!
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
08/05/11 07:54 AM (14 years ago)
I have also experienced this with my first app. Runs fine under IOS 4.x, but Xcode 4.2 finds these same 4 issues. Seems to run ok on my iOS 5.0 iPhone, but still worried about issues.
 
SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
like
08/05/11 08:30 AM (14 years ago)
Cool - how did you manage to get Xcode 4.2 to use Base SDK 4... I have figured that BASE SDK iOS 5.0 and buzztouch aren't compatible but I know that Apps with Base SDK of 4.3.5 and lower run fine on my iPhone 4 running iOS 5.0. I can only select iOS 5.0 as BASE SDK in Xcode 4.2
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
08/05/11 08:36 AM (14 years ago)
Uh, I really have no idea! I installed Xcode 4.2 and iTunes 10.5b, provisioned my phone running iOS 5 and was able to build to the iPhone. The app seemed to not want to run at first and required a hard reset. To be really honest about all this, I'm flying by the seat of my pants!
 
SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
like
08/05/11 09:05 AM (14 years ago)
OK I just did a hard reset and then on build settings ticked a few options to yes for anything that look like allowing SDK 4.2 etc to work. Got the same 4 warnings about maps/locations but app is now running on my iPhone (iOS 5.0), thank goodness! I don't need the location stuff and i have no maps in my app so all seems ok - fingers crossed!!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/05/11 11:50 PM (14 years ago)
Hi guys: We go through this with every iOS update (most at least). There are always a few lines of code that the new compilers yell about. We look into them in advance of the public release but don't usually do much about them until the actual release (a few reasons for this). Sounds like the map-view code has not playing nicely with the newest compiler. We updated three files today (see the change log) and you could re-download and see if anythings different when using the newset Xcode / iOS stuff. I'll bet this 'BT_mapAnnotation' may not respond to 'initWithCoordinate' goes away (no longer warns you) but would not be surprised if there were still snippets that need updated for iOS. Generally it's not a big deal if you're getting warnings, errors are another thing all together ;-)
 
SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
like
08/06/11 05:54 AM (14 years ago)
Thanks guys- App now working again and runs fine on my iphone (iOS 5.0 beta). Will be submitting to Apple this weekend so fingers crossed!
 
Conundrum
Code is Art
Profile
Posts: 56
Reg: Aug 11, 2011
Chatham, NJ
560
like
08/13/11 11:53 AM (14 years ago)
this is my first app , it is running quite well on the simulator ut when i try to in tall it on my iPhone with ios5 i get this mssg on Xcode when i try to run this on the phone Build target (MY APP NAME) Check dependencies [BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.3' Also i created this app on 1.4 does that might have anything to do with it?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/14/11 01:09 AM (14 years ago)
Has zero to do with the version or the device or the code. It's related to your Provisioning Profile. Dozens of posts about this. Watch the video about signing your app, you need to SIGN your app before it will run on a device. Type code sign in the forum search box for some discussions about this and some tips.
 
SP2Teach
Aspiring developer
Profile
Posts: 61
Reg: Jun 28, 2011
Perth
610
like
08/14/11 01:50 AM (14 years ago)
As for XCode 4.2 4.2 is still in BETA and cannot be used to submit apps. You can download XCode 4.1 for developers from Apple (developer downloads) - with 4.1 you can submit apps etc. As for code signing: Debug (any iOS) sign with your developer profile Release (any iOS) sign with your distribution profile. To archive (needed to submit using XCode): In build settings > skip installation: Yes for project and No for app. Then select build for archiving > archive then your archived app (zipped) will be in the organiser - from there simply click Validate to check for errors/problems then Submit. You need to set up iTunes Connect to be waiting for upload. (it is well explained on iTunes Connect - as are provisioning profiles (required for code-signing). Good luck - my app is waiting for review currently - fingers crossed.
 
Conundrum
Code is Art
Profile
Posts: 56
Reg: Aug 11, 2011
Chatham, NJ
560
like
08/14/11 08:12 AM (14 years ago)
my equipment iphone 4 with ios 5 mac with lion and xcode 4.1 I need, please, if someone can provide me a video and or a very detailed explanation for me to install the app on my phone i created the app with the 1.5 version, it is working properly on the simulator but i have no clue on how to try it on my phone thanks L
 
Conundrum
Code is Art
Profile
Posts: 56
Reg: Aug 11, 2011
Chatham, NJ
560
like
08/14/11 08:57 AM (14 years ago)
besides getting the error: [BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.3' (evidently i haven't been able to figure our how to code sign) i also get this on my organizer The version of iOS on “LR’s iPhone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/15/11 11:02 PM (14 years ago)
Maybe a good $15 to spend? We are not affiliated with Steve but he's helping lots of folks. I pulled the URL to this post off the list of forum posts, it's about half way down the screen today. http://www.buzztouch.com/forum/thread.php?tid=32AD369F06BA592A4DA8F1B
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.