xcode6

Import LocalAuthentification.framework crashes on iOS 7.1

倾然丶 夕夏残阳落幕 提交于 2020-01-13 09:48:08
问题 Have a problem with usage of LocalAuthentication and support iOS 7.0 when I'm trying to import LocalAuthentication I'm getting crash if target iOS version is less than 8.0. I tried to mark LocalAuthentication.framework as optional in the build phases and check class availability by calling: var isTouchIDSupported: Bool { if let contextClass: AnyClass = NSClassFromString("LAContext") { return LAContext().canEvaluatePolicy(.DeviceOwnerAuthenticationWithBiometrics, error: nil) } return false }

IBDesignable and UITableViewCell

五迷三道 提交于 2020-01-12 19:07:48
问题 I'm trying to leverage IBDesignable features of Swift in XCode 6 to create a subclass of UITableViewCell I see in the WWDC demo, and on the web - that you can use a framework to create a subclass of a view (UIView) which can then be used in say, a custom UITableViewCell, which is not really what I want. Can I do the same thing with a UITableViewCell directly? If I expose a UITableViewCell in my framework, then try to use it in Interface Builder, I don't have access to my custom view

Error: system file has been modified since precompiled header was built

旧城冷巷雨未停 提交于 2020-01-12 12:47:07
问题 I just downloaded the final version of xcode 6 and to compile a project that I was working with the beta, now generates the following error simulator apparently, someone can help me with this. fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/ Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sysexits.h' has been modified since the precompiled header '/Users/Lycros/Library/Developer/Xcode/DerivedData/ModuleCache/NZL05J5PKZ6B/ UIKit-301UUGFC4BK8R

Error: system file has been modified since precompiled header was built

最后都变了- 提交于 2020-01-12 12:42:48
问题 I just downloaded the final version of xcode 6 and to compile a project that I was working with the beta, now generates the following error simulator apparently, someone can help me with this. fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/ Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sysexits.h' has been modified since the precompiled header '/Users/Lycros/Library/Developer/Xcode/DerivedData/ModuleCache/NZL05J5PKZ6B/ UIKit-301UUGFC4BK8R

Cannot run tests on Xcode 6 Beta 5

坚强是说给别人听的谎言 提交于 2020-01-12 07:14:10
问题 I have an iOS project that is using the Kiwi testing framework (latest version 2.3.0 which I installed from cocoapods). At first when I ran the tests I received an error that it cannot find XCTest.h. So I followed the advice on this answer: https://stackoverflow.com/a/24651704/1082326 and the problem went away. However a different problem arise, now when I try to run the tests when the simulator selected is "iPhone 5 (8.0)" then I get the following error: IDEBundleInjection.c: Error 3587

Swift - Fading cells in UITableView

拥有回忆 提交于 2020-01-12 02:02:13
问题 I'm having troubles with my UITableView in swift on Xcode 6 : I would like my UITableView cells to fade in / out when appearing / disappearing. I looked a lot on the web for fade animations but I didn't find what I wanted because it's based on duration animations. I Think what I need is sort of mask based on alpha ? I'm not sur and I don't even know have to create one... I have a UIViewController containing a tableView and some blank space (for now) upside and downside of the UITableView.

“Convenience initializer missing a 'self' call to another initializer”

岁酱吖の 提交于 2020-01-12 01:36:22
问题 I'm trying convert my code to iOS 8 project, and i need some explanation on how to fix this warning: "Convenience initializer missing a 'self' call to another initializer" on this code: -(instancetype) initWithCoder:(NSCoder *)aDecoder // warning: Convenience initializer missing a 'self ' call to another initializer { if (self = [super initWithCoder:aDecoder]) // warning: convenience initializer should not invoke an initializer on 'super' { // some init stuff here } return self; } 回答1: The

Error ITMS-4236 when uploading build to iTunes because of build version

旧巷老猫 提交于 2020-01-11 17:15:08
问题 I was trying to upload a pre-release build to iTunes to use it with the new iTunes TestFlight integration. The way I have my continuous integration builds setup is that each release gets tagged with the git commit short hash. Example: Version: 1.7.6 Build Version: 1.7.6.4ABD89A I keep getting the following error with submitting: ERROR ITMS-4236: "Invalid value '1.7.6 (4ABD89A)' for bundle_version at SoftwareAssets I have tried different formats like: 1.7.6.4ABD89A , 1.7.6 (4ABD89A) and 1.7.6

iOS alertview for location permission doesn't pop up

故事扮演 提交于 2020-01-11 08:25:08
问题 I just started my project for iOS 8 and i ran in too the problem that i cant get the question to pop up for permission. I added the following to my info.plist <key>NSLocationWhenInUseUsageDescription</key> <string>The spirit of stack overflow is coders helping coders</string> <key>NSLocationAlwaysUsageDescription</key> <string>I have learned more on stack overflow than anything else</string> and this is my code : @interface ViewController () <MKMapViewDelegate> @property (nonatomic, strong)

Cocoapods : Library Not found

戏子无情 提交于 2020-01-11 05:45:29
问题 I am trying to run a Cocoapods project and getting the following error I tried to pod deintegrate and then pod install but it's still there. I also tried removing the pod.debug.xcconfig file from Project->Info->Configuration and then pod install but nothing. pod.debug.xcconfig generated by pod install contain path like ${PODS_ROOT}/Headers/Public/AttributedMarkdown but I can't find 'Headers/Public' in Project Navigator 回答1: First line of defense : (Quit Xcode first, which is part of the