ios-4.2

configure: error: C compiler cannot create executables in mac os terminal

﹥>﹥吖頭↗ 提交于 2019-12-02 05:26:54
i'm trying to Building libCURL in iOS 4.2, i do some steps in the terminal. The steps are : cd curl-7.21.2 export CC=/Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1 export CFLAGS="-isysroot /Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk" export LDFLAGS="-isysroot /Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -Wl,-syslibroot /Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk" export CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp ./configure --disable

ADBannerContentSizeIdentifier320x50 deprecated.. now what?

廉价感情. 提交于 2019-12-01 13:08:37
The following constant is deprecated in iOS 4.2 ADBannerContentSizeIdentifier320x50 So for an app that is already released will this be a problem in future OS versions. In iOS 4.2 they introduced ADBannerContentSizeIdentifierPortrait If I want to support both iOS 4.0 and iOS 4.2 how should I go about it. You'll have to put in checks whether the constants are available or not. Here's one solution Class cls = NSClassFromString(@"ADBannerView"); if (cls) { if (&ADBannerContentSizeIdentifierPortrait != nil) { kTabnavADBannerContentSizeIdentifierPortrait = ADBannerContentSizeIdentifierPortrait; }

Push Notification is not working?

天涯浪子 提交于 2019-12-01 09:24:44
i edit and modify the provisioning profile alot of times. and i checked it in text editor too. everything is ok with provisioning profile. but still push notifications are not working. and i m getting this error. everyone is saying that its bcz of bad provisioning profile but my provisioning profile values are the same as Apple said in their documentation. i m getting this error: Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x127d80 {NSLocalizedDescription=no valid 'aps-environment'

Getting warning in iPhone: NSString may not respond to '-JSONValue'

人走茶凉 提交于 2019-12-01 03:59:52
In my iPhone app, I am making an access to the webserver to fetch the data. Here I am using JSON to retrieve the data from database. I get a warning that says: NSString may not respond to '-JSONValue' How to resolve it? Add this #import "JSON.h" at the top of your .m or .h file. Have you tried to add JSON Library to your project and import it #import "JSON/JSON.h" You probably just miss the include to your JSON library 来源: https://stackoverflow.com/questions/4669061/getting-warning-in-iphone-nsstring-may-not-respond-to-jsonvalue

Xcode 4.2 can't debug iOS 4.2.1 (8C148)

爱⌒轻易说出口 提交于 2019-11-30 20:34:57
I recently updated to Xcode 4.2. I also updated my new iPad 2 and iPod (latest generation) to iOS 5. I build my app and can debug them no problem. My older iPod running iOS 4.2.1 (8C148) doesn't run and doesn't give any errors. The top center panel says "Finished running MyApp on iPod One". (iPod One is the name of my first iPod touch) There is a flicker at the bottom of Xcode as if it almost went into the debugger and was about to show the bottom output panel but it doesn't. A break point in main doesn't stop it either. I have no errors and nothing to go on. I have renewed all provisioning

didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes:?

爱⌒轻易说出口 提交于 2019-11-30 18:41:16
I am working with push notifications in a navBased app. in AppDelegate.m didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes: code looks like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; [self.window addSubview:navigationController.view]; [self.window makeKeyAndVisible]; return YES; } - (void

App crashes with 4.2 iPhone simulator 'set start-with-shell off'

谁说胖子不能爱 提交于 2019-11-30 17:55:35
I'm writing application which perfectly works on 4.0/4.1 iPhone simulator, but not 4.2. I'm getting such warning: Detected an attempt to call a symbol in system libraries that is not present on the iPhone: fcntl$UNIX2003 called from function get_socket_nonblocking in image TestApp. If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first. How to set 'set start-with-shell off' on Xcode? I'm tried to add this line to .gdbinit but without luck. With 4.0/4.1 SDK iPhone Simulator prints warnings about attempt to call symbol that is

Access BPM field on a song (MPMediaItemPropertyBeatsPerMinute not working)

倖福魔咒の 提交于 2019-11-30 07:44:06
I'm building an application that has a media player in it (I'm using iOS SDK 4.2). While a given song is playing, I can access pretty much every one of the properties, but I can not access MPMediaItemPropertyBeatsPerMinute. It returns null every time. The Apple doc states: The number of musical beats per minute for the media item, corresponding to the “BPM” field in the Info tab in the Get Info dialog in iTunes. Value is an NSNumber object representing an NSUInteger data type. Available in iOS 4.0 and later. Declared in MPMediaItem.h. Please note that the songs I am using DO have the BPM data

Xcode 4.2 can't debug iOS 4.2.1 (8C148)

前提是你 提交于 2019-11-30 04:15:24
问题 I recently updated to Xcode 4.2. I also updated my new iPad 2 and iPod (latest generation) to iOS 5. I build my app and can debug them no problem. My older iPod running iOS 4.2.1 (8C148) doesn't run and doesn't give any errors. The top center panel says "Finished running MyApp on iPod One". (iPod One is the name of my first iPod touch) There is a flicker at the bottom of Xcode as if it almost went into the debugger and was about to show the bottom output panel but it doesn't. A break point in

iPhone simulator folder not in Application Support

吃可爱长大的小学妹 提交于 2019-11-29 23:05:31
I am creating an application that write some data to the database. For checking I need to open the database in applications. I think it should be in ~/Library/Application Support/iphone simulator.... I have not found the iphone simulator folder in Application Support.I have installed ios 4.2, and simulator is working properly. Where can I find it? jki Xcode versions 3.x-5.x Simulator usually is installed together with SDK so most probably you should look (e.g., if you installed Xcode 3.1 and SDK 4.3 in their default locations) within: /Developer/Platforms/iPhoneSimulator.platform/Developer