Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 30    Views: 121

Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
10/27/12 06:38 AM (13 years ago)

Recompile 1.5 App for IOS 6 - Build Failed

I have downloaded the latest version of my app from Buzztouch and tried compiling it on OSX Mountain Lion (10.8.2) using Xcode (4.5.1) but I am getting 28 issues which are preventing me from using the iPhone 6.0 Simulator. The issues are as follows: Format String Issue Data argument not used by format string. Screens that contains these issues: BT_screen_menuButtons.m BT_screen_menuList.m BT_screen_webView.m BT_screen_application.m BT_screen_quiz.m BT_screen_rssReader.m BT_screen.map.m BT_screen_fileManager.m Other issues are as follows: Format specifies type 'unsigned int' but the argument has type 'unsigned long'. Screens that contains these issues: MGTwitterEngine.m Any help would be much appreciated as to resolving these issues so that I can resubmit my app to iTunes.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/27/12 08:21 AM (13 years ago)
Here is a guide for upgrading your 1.5 app to iOS 6: http://www.buzztouch.com/files/howtos/V15appToiOS6.pdf If you are getting iAd errors: You may have to ad #iAd/iAd.h Jake
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/27/12 09:56 AM (13 years ago)
I tried what you suggested but I still go the errors, a little unsure as to what you mean by adding iAd/iAd.h. I am happy to recreate my app as v2.0, but my 1.5 app had Share with Facebook which doesn't seem to be a feature anymore or am I missing something?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 07:47 AM (13 years ago)
Have you made any other modifications to the code? You will also need to update the libOAuth.a file for ARMv7s support. You can download this from here: http://jworldhosting.com/Uploads/Apps/TwitterOAuth.zip Once you have downloaded this file, go into BT_Objects and replace the current file with the newly downloaded file. What errors are you getting?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 08:28 AM (13 years ago)
I seem to be getting more errors now. 51 from 28, let me please recap to make sure I haven't missed anything. 1. Downloaded latest v1.5 version of my app. 2. Created a v2.0 base version of my app and downloaded it. 3. Copied all files from BT_Layout (v2.0) and replaced them in BT_Layout (v1.5) 4. Copied appDelegate.h and appDelegate.m files from BT_Config (v2.0) and renamed and replaced in BT_Config (v1.5). 5. Downloaded TwitterOAuth.zip and replaced folder TwitterOAuth in BT_Objects (v1.5) 6. Start Xcode and add [email protected] for iPhone 5 Retina support. 7. Change Deployment Target from 3.0 to 4.3 8. Find and replace all v2.0 app name references to v1.5 app. Any thing I have missed or done wrong?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 08:52 AM (13 years ago)
Now what you need to do is do a "Find and Replace". You need to find the app name that you used for your 2.0 app and replace it with the app name you used for your 1.5 app. This name will be the name of the Xcode project. What is the name of your 1.5 and 2.0 Xcode projects?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 08:55 AM (13 years ago)
Did that in point 8.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 08:58 AM (13 years ago)
Are you building to the simulator or a device?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 09:01 AM (13 years ago)
Simulator at this point.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 09:03 AM (13 years ago)
Sometimes the simulator does not run correctly. Can you try and build it on an actual device? (Preferable a iPhone 3Gs or greater/iPod touch 3Gen or greater?)
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 09:48 AM (13 years ago)
Tried that too but same warning unfortunately, the app just crashes when attempting to load.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 10:04 AM (13 years ago)
What device are you testing on?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 10:07 AM (13 years ago)
My iPhone 4S which is part of the Provision Portal and is authorised for this app, any more thoughts. This is really frustrating because all I wan't to do is update the contact details of the app and replace one graphic, no code changes required.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 10:32 AM (13 years ago)
Can you take a screenshot of the errors and post the links to them here?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 10:53 AM (13 years ago)
Here are a few errors: BT_Screens/BT_screen_webView.m:834:118: Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"Attachment not found in cache: @", [self localFileName]]]; BT_Screens/BT_screen_menuButtons.m:726:118: Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"building screen from stale configuration data saved at: @", [self saveAsFileName]]]; BT_Screens/BT_screen_menuList.m:609:109: Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"building screen from stale configuration data: @", [self saveAsFileName]]]; BT_Objects/BT_application.m:558:98: Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"This app does not use a splash screen", @""]]; BT_Objects/BT_device.m:145:41: 'locationServicesEnabled' is deprecated: first deprecated in iOS 4.0 self.canReportLocation = locMan.locationServicesEnabled; BT_Objects/BT_fileManager.m:219:171: Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"readTextFileFromBundleWithEncoding ERROR using encoding NSUTF8StringEncoding, trying NSISOLatin1StringEncoding", @""]]; BT_Objects/BT_fileManager.m:246:169: Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"readTextFileFromCacheWithEncoding ERROR using encoding NSUTF8StringEncoding, trying NSISOLatin1StringEncoding", @""]]; BT_Objects/BT_locationManager.m:140:40: 'getDistanceFrom:' is deprecated: first deprecated in iOS 3.2 CLLocationDistance distanceMoved = [newLocation getDistanceFrom:oldLocation]; BT_Objects/FBConnect/FBRequest.m:153:25: Using 'stringWithString:' with a literal is redundant [body appendData:[[NSString stringWithString:@"Content-Type: image/jpeg\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]]; BT_Objects/TwitterOAuth/MGTwitterEngine/MGTwitterEngine.m:945:57: Format specifies type 'unsigned int' but the argument has type 'unsigned long' [params setObject:[NSString stringWithFormat:@"%u", sinceID] forKey:@"since_id"];
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 11:58 AM (13 years ago)
What mac are you using? What version of Xcode?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 12:01 PM (13 years ago)
OSX Mountain Lion (10.8.2) using Xcode (4.5.1)
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 12:34 PM (13 years ago)
Set the deployment target to 5.1
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 12:35 PM (13 years ago)
If it is too low, then it is telling you that older Operating Systems do not support some of the code that is trying to be compiled.
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 12:39 PM (13 years ago)
The issues have now risen to 61.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 12:40 PM (13 years ago)
Are these issues with a red stop sign or a yellow caution triangle?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 12:50 PM (13 years ago)
All yellow triangles, the app compiles then pauses, I never had any warning or errors before.
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 01:05 PM (13 years ago)
The app compiles, I get the launch of the splash screen but the app pauses at the line below: int retVal= UIApplicationMain(argc,argv,@"UIApplication",@"tangled_appDelegate"); BT_Objects\main.m
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 01:05 PM (13 years ago)
What is the name of the 2.0 app you took the sourcecode from, the 1.5 app?
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 01:24 PM (13 years ago)
tangledv2 and tangled
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 01:24 PM (13 years ago)
Thank you for helping by the way :-)
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 01:24 PM (13 years ago)
Your welcome.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
10/28/12 01:25 PM (13 years ago)
Can you send me the source code? (Post a download link) I could try to fix it.
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
10/28/12 01:31 PM (13 years ago)
Is there any way of getting the FB plugin, as I don't mind recreating as a v2.0 app if it would save you time and I could pay for the Menu Search.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
11/28/12 10:23 AM (13 years ago)
Hi Jake Chasan, wondering if you would be willing to look at my source code? at the same exact point as Going-Viral. let me know and i'll post a download link, thanks!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
12/01/12 07:35 PM (13 years ago)
Hi Going-Viral, I have the issues sorted out if you need help :)
 

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.