xcode5

no valid 'aps-environment' entitlement string found for application when trying to enable push notifications

吃可爱长大的小学妹 提交于 2019-12-04 13:43:30
I've been reading all the other questions asking about this error and it seems like I've followed their solutions but I'm still having this problem. I removed all the existing provisioning profiles and app ids. I created a new app id that has push enabled. I created a development provisioning profile with push enabled. On the Apple dev site, that provisioning profile has a green "active" indicator next to it. In xcode5, under preferences>accounts, the provisioning profile is listed. Under window>organizer, the provisioning profile appears under my device with the status "valid profile". But

iOS App Launch Image After a Kill

耗尽温柔 提交于 2019-12-04 12:51:26
问题 When I kill my iPhone app and relaunch it I have an image of the app's previous state instead of the launch image. How can I force iOS to always show the launch image? 回答1: To force iOS to launch an app with its default image, call [[UIApplication sharedApplication] ignoreSnapshotOnNextApplicationLaunch]; where you implement state preservation. From the documentation: When your app is relaunched, the system displays this snapshot image in place of your app’s default launch image to preserve

Asset Catalog Error: CUICatalog: Can't find rendition for name

亡梦爱人 提交于 2019-12-04 11:55:10
All of a sudden, and through no apparent changes on my end, I am now getting the following error from an image in my asset catalog: 2013-10-30 14:44:46.629 MyApp[38590:a0b] CUICatalog: Can't find rendition for name: LoginBackground scale factor: 2 device idiom: 1 device subtype: 0 2013-10-30 14:44:46.638 MyApp[38590:a0b] Could not load the "LoginBackground" image referenced from a nib in the bundle with identifier "com.mybundleid" I have tried removing the image assets and re-adding them, to no avail. The issue is happening in the simulators as well as devices. And oddly enough I can still see

iOS 7 : 'isa' is deprecated

血红的双手。 提交于 2019-12-04 11:53:40
问题 I get warning when I run my app in iOS7 "'isa' is deprecated", I don't have any idea how to fix this warning message. Please any one help on this. array->isa = _JKArrayClass; 回答1: Include <objc/runtime.h> . Replace everything like array->isa = _JKArrayClass; with object_setClass(array, _JKArrayClass) And everything like class = array.isa with class = object_getClass(array) 回答2: I figured I would share my solution for you Cocoapods users out there. (Please let me know in the comments if you

Xcode: How to set current working directory to a relative path for an executable?

℡╲_俬逩灬. 提交于 2019-12-04 11:46:57
问题 I have a command-line executable in Xcode. I am using Xcode 5.1. In the "Scheme Editor" for the project under "Options" there is an option for "Working Directory". How can I specify a path relative to the .xcodeproj file? I have tried a single period. I need this because the code needs to assume the existence of files relative to the project directory. 回答1: You can use Xcode build setting variables such as PROJECT_DIR , e.g. setting your working directory to $PROJECT_DIR/.. will make it equal

iOS7 Status Bar over Navigation Bar

不打扰是莪最后的温柔 提交于 2019-12-04 10:31:15
问题 I'm testing my application with iOS7 and I have an issue with status bar. Basically the status bar appear over navigation bar like the image below: I try to call in my viewDidLoad self.edgesForExtendedLayout = UIRectEdgeNone; self.automaticallyAdjustsScrollViewInsets = YES; without success. I have also added to the info.plist file UIViewControllerBasedStatusBarAppearance with no luck. The main problem is that the application must be compatible with iOS6 and iOS7 and currently on iOS7 the view

ios 8, how to get all photos using ALAssetLibrary to replace the missing camera roll album

邮差的信 提交于 2019-12-04 10:21:13
问题 I have an app that has a custom Image Picker that uses the ALAssetLibrary to create an Album picker and image picker. We've implemented a custom picker in order for our customers to select multiple images. This image picker works great under iOS 7 and shows the "Camera Roll" album with ALL the user's photos. However, when running the same app under iOS 8, it seems that Apple has removed the "Camera Roll" album from the Albums view and only shows "Recent Photos". From what I can see, the only

How to turn off icon gloss effect in Xcode 5

一个人想着一个人 提交于 2019-12-04 08:57:38
问题 I'm making app and I'm try to turn off icon gloss effect. Earlier in Xcode 4 it was able to turn off icon gloss effect by turn on "Prerenderred" checkbox. Now when i want to use Assets catalog i have to edit .plist file. And i did it. I add key Icon already includes gloss effects and set to YES but effect is still on icon. How to disable this effect correctly in new Xcode? Thank you in advance. 回答1: The answer is pretty simple when you use .xcassets (Assets) . What you have to do is to select

How to create a universal dylib from pre-built dylibs for each architecture?

泄露秘密 提交于 2019-12-04 08:44:45
问题 For another universal library I need to combine 2 existing dylibs (here x86 and x64) into a single universal lib. How can I do that without re-building the existing libraries? 回答1: Actually, it's extremely easy to do once you know it. There's a tool called lipo that can do a number of things with dylibs. One is to combine two (or more) libraries. For example: lipo lib1.dylib lib2.dylib -output combined.dylib -create where lib1 could be an i386 and lib2 an x86_64 arch type. It will create a

How can I build for iOS 6 with Xcode 5? [closed]

最后都变了- 提交于 2019-12-04 07:53:56
I have already downloaded the new Xcode 5.0, but I wanted to build an app for iOS 6... How can I do that from Xcode 5.0? Or do I need to have a version of Xcode 4 installed so I can do that? Xcode does let me change the deployment target as the screen below: But it doesn't let me use a older Base SDK Just set the Deployment Target to iOS6, in the configuration of the project: First of all you need to download the older Xcode you want to build for. After that, you copy the .sdk in the folder of the older Xcode /Applications/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/platform/SDK and