xcode6.1

Image sizes required to support all iPhone devices

馋奶兔 提交于 2019-12-12 02:01:14
问题 What all splash screen images do we required to create an iOS application? I want to give support all the devices which supports iOS8. Trying to find out working of Images.xcassates and how to add splash images. I want to support iPhone 4, iPhone 5/5s/5c, iPhone 6/6+, iPad. What is the naming convention required to set LaunchImage? I just saw 1x, 2x, Retina 4 2x, and 3x in xcassates. But not getting what file names it required. Like for non retina and and retina we simply twice non retina

How to Add plugin for Xcode 6+

泪湿孤枕 提交于 2019-12-12 01:54:20
问题 Adding plugin for Xcode 6 Open your terminal and type this without quotes. "cd /Applications/Xcode.app/Contents/PlugIns" or same in terminal type this without quotes. "open /Applications/Xcode.app/Contents/PlugIns" Copy/Add/Drag&Drop your plugins there. Note: This will require an authentication for administrator password. Authenticate, it is safe. lol for Plugins Removal: just do the same, go to the said path and reverse the process.... "Move to Trash". 回答1: Thank's for this. I'm adding a

core data swift sugue not pushing data to second view controller

喜夏-厌秋 提交于 2019-12-11 14:21:34
问题 I have a table view and I want to select an item and have it show all the data for that item in a second view controller. This is my code I am trying to use. override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier == "showTea"){ let selectedIndexPath:NSIndexPath = self.tableView.indexPathForSelectedRow()! let genView:genViewController = segue.destinationViewController as genViewController genView.teaname = selectedIndexPath I get the following error.

OSX Cocoa Bad Instruction crash

大兔子大兔子 提交于 2019-12-11 13:42:56
问题 I am developing an app (for like a year) and it works fine , when it comes to submitting to App Store -> all my problems started: 1)The app store would me to make my app to run in a sandbox(Why Apple ? Why !?). It took like 2 days to understand why just toggling "ON" in capabilities doesn't make it... etc ... in the end I somehow managed to convince my app to run in sandbox. 2)now the app passing the validation fine and can be submitted to the bloody App Store However when I checked the app

I need to create another branch from a past commit

牧云@^-^@ 提交于 2019-12-11 03:03:57
问题 I have a Git repos that looks like this: I want to create a new branch from the highlighted commit. (It's a long story, but basically I want to submit the iOS app while working out kinks in the latest branch). I'm pretty sure this is possible, just don't know how to accomplish it... in addition, I don't see any way of using 'tags' in XCode 6.1.. is it available, just not documented? 回答1: You can do as (Check git-checkout(1) Manual Page documentation) git checkout -b|-B <new_branch> [<start

Comparing Unmanaged<AnyObject> to nil

烈酒焚心 提交于 2019-12-10 21:29:25
问题 The code is copied from this blog post: http://matthewpalmer.net/blog/2014/06/21/example-ios-keychain-swift-save-query/ I used to have this code: // Search for the keychain items let status: OSStatus = SecItemCopyMatching(keychainQuery, &dataTypeRef) // The following line crashes with an EXEC_BAD_ACCESS if dataTypeRef is nil var opaque = dataTypeRef!.toOpaque() When I run the above using a new account value in the keychain query the dataTypeRef will be nil which leads to an EXEC_BAD_ACCESS .

XCode 6.1 Missing required architecture X86_64 in file for extern library

强颜欢笑 提交于 2019-12-10 05:10:39
问题 I have an issue when trying to use an external lib : I can't compile the project as it throws an exception as below. ld: warning: ignoring file /Users/renaudcousin/Documents/XCode/WORK/StimShopPOC/StimShopPOC/libStimshop_SDK.a, missing required architecture x86_64 in file /Users/renaudcousin/Documents/XCode/WORK/StimShopPOC/StimShopPOC/libStimshop_SDK.a (3 slices) Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_StimshopSDK", referenced from: objc-class-ref in ViewController.o ld:

Using Objective-C code in iOS Cocoa Static Library project with Swift code in iOS Application project

人走茶凉 提交于 2019-12-09 23:02:38
问题 I am looking for a simple procedure for combining an Objective-C code from a shared library project with Swift code from an application project but have had no success so far with this sequence: start Xcode 6.1.1 create workspace Test create iOS Cocoa Touch Static Library project TestLibrary and add it to workspace create iOS Single View Application project Test (language: Swift) and add it to workspace add import TestLibrary to ViewController.swift If I now build Test, I receive this error

Add Accessory to home always returns error(GenericError)

扶醉桌前 提交于 2019-12-08 12:46:44
问题 I am trying to add a accessory to Home(HMHome) and always error block is execute. I am getting GenericError which means An error occurred for which there is no more specific error code . I am not able to understand the reason of this error even documentation does not has the proper reason of it. And This is happening since last one day, earlier i was able to add the accessory by the same code. if (self.home != nil ){ self.home!.addAccessory(accessory, completionHandler: ({(error:NSError!) in

Can't delete the old agent Apple ID from Xcode

强颜欢笑 提交于 2019-12-08 06:52:59
问题 I have a problem regarding to adding Apple ID to Xcode. So far I have been using an office Apple ID as my Xcode Apple ID. Now they invited me to join as a developer. so using my own Apple ID I can access the provisioning profiles and apps in old account. And now I want to add my own apple id to the xcode and delete that old office Apple id. But I cant delete the old apple id from the xcode. When I archive the project and when try to save the .ipa file, it says cant access the account. That