Discussion Forums  >  Uncategorized

Replies: 9    Views: 1243

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
10/14/11 07:22 AM (14 years ago)

iOS5 problems in xcode 4.2

I've updated my iphone4 to iOS5 - works great. I've updated XCode to 4.2. I can get my app working on the iPhone without problems, BUT I am getting issues when building the app in xcode (I downloaded the source code after upgrading to iOS5) : lexical or preprocessor issue (extra tokens at end of #import directive) and Semantec issue ( declaration of 'struct sockaddr_in' will not be visible outside of this function) and Unused Entity Issue (property access result unused - getters should not be used for side effects and Semantic Issue (Incompatible pointer types assigning to 'NSMutableData *' from 'NSData *' there are 32 issues in total, although the app works fine, Is this something that needs to be fixed in what buzztouch produces when I download my app for testing on the iPhone? Also, I have a call us button on one app I'm testing - it used to say do you want to call this number yes or no but now goes straight to making the call. Can I go back to the old way where it asks for confirmation first? thanks!
 
Art_Malik
I hate code!
Profile
Posts: 42
Reg: Jun 16, 2011
Los Angeles
1,220
like
10/14/11 07:44 AM (14 years ago)
I am experiencing the same problem with 20 issues. Will this cause a problem when i submit my application to Apple?
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
10/14/11 08:46 AM (14 years ago)
I had the same problem, and was able to fix everything so far, except for the unused entity. Those warnings are not really a problem, and your app will work just fine. It's just that, in principle, it's better to have no warnings. Now, to fix the semantic issue, in your BT_Reachability.h file, just add this with the other imports at the beginning (around line 34/35): #import <netinet/in.h> It should solve the problem. For your pointer issue, just go the line indicated by xcode, and simply replace NSData by NSMutableData, and it'll be fine. As soon as I find the other fixes, I'll post them here!
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
10/14/11 10:46 AM (14 years ago)
@ aescleah +1 to you!
 
vlad12
Aspiring developer
Profile
Posts: 91
Reg: Jun 28, 2011
location unknow...
2,960
like
10/15/11 10:43 AM (14 years ago)
@aescleah thx
 
vlad12
Aspiring developer
Profile
Posts: 91
Reg: Jun 28, 2011
location unknow...
2,960
like
10/15/11 12:47 PM (14 years ago)
if you have problem with MKAnnotation use this @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *subtitle; I don't know if i'm right but for me it work
 
pasquino
Lost but trying
Profile
Posts: 10
Reg: Sep 22, 2011
Rome
500
like
10/18/11 05:24 AM (14 years ago)
I am experiencing the same problem with 108 issues. I added #import <netinet/in.h> in BT_Reachability.h file, but i didn' help it
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/19/11 12:11 PM (14 years ago)
Build warnings should be gone with the newly updated download. Have a look at the change log in the documentation then grab the newest project.
 
vlad12
Aspiring developer
Profile
Posts: 91
Reg: Jun 28, 2011
location unknow...
2,960
like
10/20/11 03:58 AM (14 years ago)
Thx a lot David
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
10/20/11 04:11 AM (14 years ago)
much appreciated david!!
 

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.