xcode7

Need help setting up an interface where rotation is fixed for most elements, but alert and sharing boxes auto-rotate with the device

≯℡__Kan透↙ 提交于 2019-12-20 03:31:38
问题 I'm working with Xcode 7 and Swift 2. I am working on an interface with a camera preview layer and controls that display in a manner similar to the native iOS camera app. The controls all stay in place as you turn the device, but the icons "pivot" in place to orient properly for the device orientation. (I hope I explained that in a way that makes sense. If not, open the native camera app on your iPhone and turn the device around a few times to see what I'm talking about.) I have the basic

Enable bitcode Xcode 7.1

我的梦境 提交于 2019-12-20 03:13:38
问题 I'm having this error in XCode 7.1 when building the application for iOS9: (...) MyoKit(TLMHub.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) When building the application for the simulation, it works. I've been searching and I can't find an option to enable

App stuck in splash screen on iOS 9 with no error

若如初见. 提交于 2019-12-20 03:02:10
问题 My app gets stuck on splash screen in iOS 9 both on iPhone and simulator. I can run it on iOS 8 or lower on device and simulator with no problem. My colleague working on the same app has exactly the same problem. There is no error or anything, just hangs on splash screen. If I stop it on xcode and try to run it from the phone or simulator directly, it would run without any problem. By the way, I don't see didFinishLaunchingWithOptions or willFinishLaunchingWithOptions getting called! 回答1: In

Linker command failed with exit code 1 (duplicate symbol)

泄露秘密 提交于 2019-12-20 02:46:15
问题 I developing a game in Unity and I have used Admob, Facebook and GameCenter in it. It was working fine on iOS until I have added the OpenIAB for in-app purchase, though it works fine in Unity Editor. I am getting this error in xcode: duplicate symbol __Z14MakeStringCopyPKc in: /Users/UmerAzeem/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejwaywhkiokzjofdpwnbebkbleai/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/FBUnityUtility.o /Users

Xcode 7 - Incompatible block pointer types

梦想的初衷 提交于 2019-12-20 01:43:56
问题 This code worked fine in Xcode 6, but now won't compile in Xcode 7. Any ideas how to fix and why this is an issue in Xcode 7? Incompatible block pointer types sending 'void (^)(SKSpriteNode *__strong, NSUInteger, BOOL *)' to parameter of type 'void (^ _Nonnull)(SKNode * _Nonnull __strong, NSUInteger, BOOL * _Nonnull)' [self.children enumerateObjectsUsingBlock:^(SKSpriteNode * node, NSUInteger idx,BOOL *stop) { float parallaxRatio = [(NSNumber *)node.userData[@"ParallaxRatio"] floatValue];

How to change tint color of tab bar in swift?

谁都会走 提交于 2019-12-19 19:55:26
问题 I'm using tab bar and I have 2 problems with color. 1st Problem , the tint color is grey, I used some code to change it to white but it turn to white only when tab is pressed. class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. let barColor = UIColor(red: 49/255, green: 75/255, blue:

Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 7 Beta 2

拜拜、爱过 提交于 2019-12-19 19:54:55
问题 When I incorporated a popular OAuth2 library in iOS called OAuth2Client to my iOS app which is developed on Xcode 7 Beta 2 and then tried running the simulator, the following error occurred and the simulator didn't launch. Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' What does this error mean? A lot of warnings (yellow triangle) followed with the error above (red octagon), such as: warning: no rule to process file '/Users/myUsername/myAppname

No Method declared with Objective-C Selector for Notification UIKeyboardWillShowNotification and UIKeyboardWillHideNotification

寵の児 提交于 2019-12-19 19:45:09
问题 After the recent update of Xcode, this code that used to work no longer works. Most of the Selector(":") has an auto correction with the exception for this code: override func viewDidLoad() { super.viewDidLoad() NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardWillShow:"), name:UIKeyboardWillShowNotification, object: nil); NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardWillHide:"), name:UIKeyboardWillHideNotification,

React-native IOS: Network request failed

感情迁移 提交于 2019-12-19 18:22:19
问题 I'm testing a react native app (on OS X Yosemite in the xcode simulator v9.2 / xcode 7.2.1). I'm getting a Network request failed error with the below code. The actual url with the correct appid works just fine in a browser and gives me the correct information in json format, and the promise / api call looks fine. I'm not behind a firewall. I've tried troubleshooting the connection, and activating the Allow HTTP Services in the Developer settings, but I'm still getting the error. Any idea

AVAudioPlayer no longer working in Swift 2.0 / Xcode 7 beta

泪湿孤枕 提交于 2019-12-19 17:47:03
问题 For the var testAudio declaration in my iPhone app, I am receiving an error here "Call can throw, but errors cannot be thrown out of a property initializer" import UIKit import AVFoundation class ViewController: UIViewController { var testAudio = AVAudioPlayer(contentsOfURL: NSURL (fileURLWithPath: NSBundle.mainBundle().pathForResource("testAudio", ofType: "wav")!), fileTypeHint:nil) This happened when I moved to the Xcode 7 beta. How can I get this audio clip functioning in Swift 2.0? 回答1: