xcode5

Upgraded to iOS 7 beta / Xcode 5 beta and receiving warning “CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS”

余生长醉 提交于 2019-12-03 08:31:56
问题 Just upgraded to iOS 7 beta (and Xcode 5 beta) and am receiving the following warning when I build a preexisting app that I'm moving to iOS 7 Check dependencies: warning: CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS. However, when I check the Code Signing Entitlements flag in my Build Settings, I actually don't have a Code Signing Entitlement defined: Any ideas? Is this now required in iOS 7? If so, how would I define a Code Signing Entitlement? 回答1: The

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 07:29:27
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. You can use Xcode build setting variables such as PROJECT_DIR , e.g. setting your working directory to $PROJECT_DIR/.. will make it equal to the parent directory of your project directory. In Xcode preferences you can change the location of the

XCode 5: Is there any way to group/filter/sort what shows up in code-completion?

。_饼干妹妹 提交于 2019-12-03 07:27:57
问题 For a very simple object like this: @interface MyObject : NSObject @property(strong) NSObject* thingAboutMyObject; - (void) aThingToDo; - (void) moreToDo; - (void) yetAnotherAction; @end Someone working with MyObject gets code completion which includes all of the methods and properties from NSObject. It makes sense why this happens, but for a majority of cases, the methods I care most about are in the class itself. I'd like to know if there is a way, when creating a class, to hint to the

CocoaPods UIImageView+AFNetworking.h unrecognized selector setImageWithURLRequest

房东的猫 提交于 2019-12-03 07:11:46
I have installed AFNetworking 2.1.0 with CocoaPods on Xcode 5. //ViewController.h #import <AFNetworking/AFNetworking.h> #import <AFNetworking/UIImageView+AFNetworking.h> Calling setImageWithURLRequest on an UIImageview the application fail with this log: This is the error log: 2014-02-07 11:55:19.984 OPS[1717:60b] *** Terminating app due to uncaught exception'NSInvalidArgumentException', reason: '-[UIImageViewsetImageWithURLRequest:placeholderImage:success:failure:]: unrecognized selector sent to instance 0x147b06d0' I've found some discussion on this issue, but the provided solution (adding

Launch images show black, when using Asset Catalog

坚强是说给别人听的谎言 提交于 2019-12-03 06:59:40
问题 In Xcode 5 , I use the asset catalog to manage the app icons and launch images for my app. The app icons work fine on all devices, but the launch images just on a few. I have added launch images for every possible device, and iOS (6.1 and 7.0), that I want to target. I have made sure that all images have the correct sizes , which is confirmed in the attributes inspector (see picture below) where the size of the images match the expected sizes. I have also named all images after the naming

MPMediaItemPropertyAssetURL returning null only for iPhone 5s

帅比萌擦擦* 提交于 2019-12-03 06:58:53
I have been using the following code to extract the asset url from the MPMediaItem object returned from the MPMediaItemPickerController so that I can copy music files from a users iPhone itunes music library to the documents folder for processing, but on iPhone 5s I always get a null value from the MPMediaItemPropertyAssetURL, but when I run the same code on iPhone 4 or iPhone 5 it works as it should returning a proper url. - (void) mediaPicker: (MPMediaPickerController *) mediaPicker didPickMediaItems: (MPMediaItemCollection *) mediaItemCollection { [self dismissViewControllerAnimated:YES

How can I tell Asset Catalog (.xcassets) to use the Same Image for Multiple Image Wells?

懵懂的女人 提交于 2019-12-03 06:38:23
问题 We have several Xcode app projects, and we're upgrading all of them to use the latest Xcode 5 features, including Asset Catalogs ( .xcassets ). All of our default (launch) images already include spacing for the status bar, and we want to use these images for both the iOS 5,6 and iOS 7 launch images. Further, we don't want to include multiple copies of the same image in the project. One of our projects is correctly set to use the same images for both of these image well sets. However, this was

Missing AppIcon in Organiser

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:18:39
I've recently migrated my application to support iOS7 and during that process updated my app icons to use an Asset Catalog; which is all working great in the app. However, in Organizer—and TestFlight—my app icon is missing. The same is also happening in TestFlight—which implies there is something missing from my bundle. Any help would be gratefully received. So it seems you still need to have the Icon files entry in the app plist that points to an icon that is a resource in the app; even though Xcode removed this when I converted to the catalog; here is the entry that I created manually whilst

iOS7 Status Bar over Navigation Bar

别来无恙 提交于 2019-12-03 06:07:46
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 shifted 20px from the top. edgesForExtendedLayout and automaticallyAdjustsScrollViewInsets are just

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

倾然丶 夕夏残阳落幕 提交于 2019-12-03 05:42:49
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 way to access all photos in iOS 8 is through the Collection view (in the Photos app or the new built-in