xcode6

warning: all apps should include an armv7 architecture (current archs = “arm64”)

两盒软妹~` 提交于 2019-12-21 02:52:25
问题 warning: all apps should include an armv7 architecture (current archs = "arm64"). I have read other posts with earlier versions of XCode and none of those examples helped fix this. Its seems no matter what I put in the settings, as you see below, helps. I still get the same error. The project and the target settings look the same. I have tried adding armv7s and that doesnt help. I dont know why the error says current archs - arm64. Doesnt it see everything else? 回答1: I found that the order in

Segue not getting selected row number

不羁的心 提交于 2019-12-20 23:32:26
问题 I am passing data from a table view controller to a detail view. I tried using indexPath.row directly in my prepareForSegue method, however it displays an error of use of unresolved identifier 'indexPath' So, after searching the web, I set up the variable indexOfSelectedPerson which is assigned the value of indexPath.row . The problem when I run the app in the simulator is that prepareForSegue is getting the initial value of indexOfSelectedPerson (0), then getting the value of the selected

Cocoa pods and Watchkit Extesion

老子叫甜甜 提交于 2019-12-20 21:05:12
问题 I try to build a WatchKit Extension for my app... I Updated the pods file to look like this: platform:ios, '8.0' use_frameworks! source 'https://github.com/CocoaPods/Specs.git' link_with 'my-team-ios', 'My Team WatchKit Extension' def shared_pods pod 'DOSingleton' pod 'JSONModel' pod 'MagicalRecord' end target :'My App' do shared_pods pod 'Facebook-iOS-SDK', '~> 3.23.1' pod 'Reveal-iOS-SDK', :configurations => ['Debug'] ... some more pods here... end target :'My Team WatchKit Extension' do

Missing keyboard on iOS8 simulator?

眉间皱痕 提交于 2019-12-20 17:33:05
问题 I'm checking my app against iOS8 in the simulator and one thing that puzzles me is that when I tap on a UITextField or UITextView the keyboard doesn't appear on the screen! I can still enter text with my hardware keyboard. Also, if the input element has a inputAccessoryView, that view is shown on the bottom of the screen. So everything works as expected except that the keyboard is not appearing on the screen. This is valid for all input elements throughout the app. I don't use the new feature

How to disable “Relative to margin” option for newly created constraint in Xcode6

China☆狼群 提交于 2019-12-20 16:21:08
问题 I want to disable automatic adding Relative to margin when creating constraints in IB of Xcode 6 . It's nice that they turn this option on by default, but I have to support iOS7 , so it turned out I have to manually disable this option every time after adding new constraint. I found this setting for disabling it beforehand, but it's always on by default. 回答1: This plugin will set a default value of Constrain to margins to disabled. https://github.com/mshibanami/DefaultMarginDisabler 回答2: The

How to disable “Relative to margin” option for newly created constraint in Xcode6

≯℡__Kan透↙ 提交于 2019-12-20 16:20:35
问题 I want to disable automatic adding Relative to margin when creating constraints in IB of Xcode 6 . It's nice that they turn this option on by default, but I have to support iOS7 , so it turned out I have to manually disable this option every time after adding new constraint. I found this setting for disabling it beforehand, but it's always on by default. 回答1: This plugin will set a default value of Constrain to margins to disabled. https://github.com/mshibanami/DefaultMarginDisabler 回答2: The

Run .app file in iOS 8 simulator

安稳与你 提交于 2019-12-20 12:37:25
问题 I have a .app file shared from a developer which i would like to run in iOS 8 simulator. I have seen similar questions which has solutions for older versions of iOS which is no longer working for iOS 8. Can someone point out what needs to be done to run the .app file in an iOS 8 simulator without using xcode. 回答1: Boot the simulator you want to install it to in the iOS Simulator and then do the following: xcrun simctl install booted /path/to/Your.app xcrun simctl launch booted com.yourcompany

How to add subview inside main view in Swift [closed]

落爺英雄遲暮 提交于 2019-12-20 12:10:21
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I need advice how to proceed. How to slightly dim the main view and display some busy indicator, for the duration of of some action, and then remove the dimming? In Swift language. Thanks! UPD: In Objective-C I use earlier something like this: UIView *dimView = [[UIView alloc]

Objective C test class using Swift code

回眸只為那壹抹淺笑 提交于 2019-12-20 12:04:13
问题 I have a swift protocol IModelIdProvider in the MyProjectName folder. I have created an objective-c unit test class named RemoteModelFactoryTest in the MyProjectNameTests folder. To do some tests, RemoteModelFactoryTest must implement the IModelIdProvider protocol. When I #import "MyProjectName-Swift.h" to use my swift protocol in my objective-c class, I get a file not found . If I change the #import instruction to #import "MyProjectNameTests-Swift.h" , the header is found but not my protocol

Can In App Purchases be tested in the IOS 8 (Xcode 6) Simulator?

試著忘記壹切 提交于 2019-12-20 11:37:07
问题 I keep finding conflicting information about whether In App Purchases can actually be tested on a simulator using Xcode 6. Some answers say ' yes ', others seem to indicate there are a bug in beta versions of Xcode 6 and others flat out ' no '. I have an app where IAP works great on the device, but in the simulator, trying to refresh the receipt fails with a very unhelpful message: Error Domain=SKErrorDomain Code=0 "The operation couldn’t be completed. (SKErrorDomain error 0.)" . My app was