xcode6

iOS 8 UIApplicationMain crash since SDK 8 update

余生长醉 提交于 2019-12-11 07:18:27
问题 Since I updated Xcode to 6.0.1 and iOS SDK to 8.0 my app no longer work on the device (running iOS 8 ofc). But it works perfectly in the simulator. The app crashes in UIApplicationMain before any call to the delegate has ever happened. It seems either a value or key is null at CFTypeCollectionRetain. I've tried Recreating certificates/provision profiles. Re-built with/without ARC. Tested both armv7 and arm64 builds. Xcode template (Game) application compiles and runs without probs. Things to

xCode6 incorrect view controller orientation when deployed to iOS7 device

落爺英雄遲暮 提交于 2019-12-11 07:16:10
问题 I'm running into a weird issue when testing an app with deployment target of 7.1 compiled with xCode6 and tested on an iOS 7.1.2 and iOS 8.0.2 devices. A view controller is defined in storyboard with a portrait placeholder. The app supports landscape orientation only. in app delegate: @property (nonatomic,strong) UIViewController* privacyScreen; self.privacyScreen = [kMainStoryboard instantiateViewControllerWithIdentifier:@"privacyScreen"]; [self.window addSubview:self.privacyScreen.view];

iOS8 Beta 3 SpriteKit exc_bad_acces when running on device

老子叫甜甜 提交于 2019-12-11 07:09:44
问题 I am currently developing an app in Spritekit with Swift . The app worked perfectly on device and in the simulator until I updated to Xcode 6 Beata 3 and iOS 8 Beta 3. When I run the app in the simulator everything still works perfect. But running the app on the device causes a exc_bad_acces when I create a SKTextureAtlas . Is anyone facing a similar problem or can anyone help me how to solve this. I've alredy tried to run it on a device with iOS8 Beta 2 but I run into the same error here. I

UITextView uncheck Selectable checkbox cause text issues in runtime

二次信任 提交于 2019-12-11 06:13:42
问题 Using text view in storyboard you can make it not editable or not selectable next to Behavior caption or vice versa: Seems options looks very promising and it works good for editable option. But when I uncheck selectable checkbox it cause some issues with font and text in runtime. So let's say that I set font to Helvetica-Bold and set color Red (which are not default settings for text view) and then uncheck selectable box like on image above. Next let me add some code to viewDidLoad: self

Creating a Bridging Header

无人久伴 提交于 2019-12-11 03:59:49
问题 I am creating a Bridging Header manually since it doesn't let me do it automatically. I created the a header file called "AppName-Bridging-Header.h. The problem is that I can not set it as the project’s Bridging header, which can be normally done through the project’s build settings. I do not have the Objective-C Bridging file section under Swift Compiler -Code generation. I only have Optimization level. Thank you. 回答1: Your question is a bit unclear but I'll try to help you as much as I can.

CGAffineTransformMakeScale() distorting view frame after animation

痴心易碎 提交于 2019-12-11 03:58:42
问题 I'm animating a view to make it appear as it is growing from the center of the screen with a theCGAffineTransformMakeScale(), it works fine in the iOS 8 beta 4 simulator but on the 7.1 version it distorts the frame of the view. view.alpha = 0.0f; view.transform = CGAffineTransformMakeScale(0.95f, 0.95f); [UIView animateWithDuration:0.5f delay:0.0f usingSpringWithDamping:1.0f initialSpringVelocity:1 options:0 animations:^{ view.alpha = 1.0f; view.transform = CGAffineTransformMakeScale(1.0f, 1

Xcode - can't find Debug View Hierarchy button

大城市里の小女人 提交于 2019-12-11 03:56:39
问题 I can't find the Debug View Hierarchy button in Xcode. I've read this: Xcode 6.1 can't find 'debug view hierarchy' button and launched my app on the iOS8 simulator but still no luck. Something to do with the Architectures perhaps? Here's what I'm using: 回答1: On the left side of the debugger, in the toolbar below: It is the second icon from the right in the image. It might be black or greyed out depending on whether Xcode is in focus or not. It works fine on device and simulator. Either click

How to emulate location while app isn't running

余生颓废 提交于 2019-12-11 03:51:59
问题 I'm building an iOS 8 app that features GeoFencing. I need to test this and I know that I can emulate the location in Xcode using the preconfigured locations or providing a GPX file. However, as this app needs to act based on region monitoring when it's killed (swiped up in multitasking by user), how can I test it without getting in my car and driving around? Thanks! 来源: https://stackoverflow.com/questions/28028675/how-to-emulate-location-while-app-isnt-running

swift auto completion not working in Xcode6-Beta

拈花ヽ惹草 提交于 2019-12-11 03:47:24
问题 I made an iOS project with Swift and the XCode6-Beta doesn't show any completion for me. But it works with playground. I noticed some youtube videos for swift , the xCode can show the methods automatically, should I configure the project or do something else? Thanks. 回答1: I have figured it out. If your swift files contain Unicode characters, auto completion will fail even if the characters are comments. So just delete all the Unicode characters, and the auto completion feature will work well

Xcode 6 GM won't compile for iOS device, but is fine in simulator - odd error message

余生长醉 提交于 2019-12-11 03:38:30
问题 I have a project that compiled just fine in XCode 6 beta, but now, in the GM, it won't compile for an iOS device, giving the error: myController.m:393:9: No visible @interface for 'UIDevice' declares the selector 'initialize:' at this line: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) It still compiles absolutely fine for the simulators; I've also tried these fixes: Cleaned the whole project and re-built. Deleted all Derived Data from ~/Library/Developer/XCode Re-installed XCode