xcode9

Main Thread Checker: UI API called on a background thread iOS 11 Xcode 9 GM Seed

大兔子大兔子 提交于 2019-12-24 03:26:11
问题 Can anyone please help me in debugging this issue, from the time i started working with Xcode 9 GM seed with iOS 11 GM seed, my code throwing me a warning in the console saying: 2017-09-18 16:22:52.872716+0530 **** *****[359:20158] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] .PID: 359, TID: 20158, Thread name: Runtime Network Callback Thread, Queue name: com.apple.root.default-qos.overcommit, QoS: 21 Backtrace: also, i'm using ESRI

Facebook Login Button Termination in xcode 9

给你一囗甜甜゛ 提交于 2019-12-23 18:20:55
问题 I am using Xcode 9 and i set the compiler to Swift 3.2 I installed Facebook Login with Cocoapods and everything compiles without any error but whenever i run it in the simulator i click on the login button it crashes with only this printed in the console: libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) and this is my ViewController.swift: import UIKit import FBSDKLoginKit import FacebookLogin class ViewController: UIViewController { override func viewDidLoad()

How do I display this Log message in the Debug area using Xcode9?

亡梦爱人 提交于 2019-12-23 18:15:46
问题 This looked promising but doesn't seem like a duplicate question as it addresses issues in Swift. I am finalising an existing Objective C project but NSLog disappeared when I updated to Xcode 9. So I'm looking for some setting in Xcode that lets me continue using NSLog to fine tune the project. Basic debugging using logging for Swift and Objective-C apps appears to have changed in Xcode 9 as NSLog messages no longer appear in the Debug area. The window where DEBUG=1 is set no longer looks

How to use crc32 from zlib in swift (Xcode 9)

我是研究僧i 提交于 2019-12-23 17:38:17
问题 I'm new to swift/xcode and am trying to use the crc32 function that, as mentioned here, is provided in zlib from libz.dylib . I've modified the code so that I am now trying: let message1 = "some message".first?.value!.data(using: String.Encoding.utf8, allowLossyConversion: false) let crc = crc32(CLong(0), UnsafePointer<Bytef>(strcat!.bytes), UInt(message1!.length)) however I am encountering the error: use of unresolved identifier 'crc32' . Could anyone help me to figure out what step I might

Can't link to outlet collection in XCode9

守給你的承諾、 提交于 2019-12-23 12:17:21
问题 I have some constraints that a shuffle around during an animation. After upgrading to XCode9 I tried to make some tweaks, and the editor seems to no longer allow me to add constraints to an constraint collection IBOutlet. I even created a new project and tried to make a simple outlet collection and ran into the same issue. Here's a short video of what I'm talking about: I've tried the usual things of deleting derived data, restarting xcode, creating new xibs, praying to the xcode gods...etc.

XCode - upgrade to Swift 4 manually

亡梦爱人 提交于 2019-12-23 12:06:39
问题 I have a project with 2 targets, both targets share more than 99% codes and was written in Swift 3. When XCode 9 is available, one of the targets is being scanned, the codes and the target's "Build Settings" are all updated for Swift 4. Sadly, I just found out that another target is still marked as Swift 3.2 syntax. I would like to update the second target to Swift 4 by XCode, however, the second target is marked as Swift 3.2 syntax but the codes are Swift 4 already, it is not compilable and

XCode - upgrade to Swift 4 manually

此生再无相见时 提交于 2019-12-23 12:05:21
问题 I have a project with 2 targets, both targets share more than 99% codes and was written in Swift 3. When XCode 9 is available, one of the targets is being scanned, the codes and the target's "Build Settings" are all updated for Swift 4. Sadly, I just found out that another target is still marked as Swift 3.2 syntax. I would like to update the second target to Swift 4 by XCode, however, the second target is marked as Swift 3.2 syntax but the codes are Swift 4 already, it is not compilable and

Xcode 9.0.1 App Distribution Procedure is Changed

旧街凉风 提交于 2019-12-23 07:46:56
问题 Recently I have upgraded my Xcode to Xcode 9.1. After that when I try to publish my app, Xcode is not allowing to select the distribution profile I created for ad-hoc. Saying that Profile is not an IOS App store profile Please let me know if there is a change in App distribution procedure with respect to Xcode 9.1 回答1: Xcode tool you are using (Xcode 9.1 beta) is not a stable version of Xcode Tool as on today, so It must/will not allow you publish/submit a build on app store. Only stable

Xcode9 WARNING ITEMS-90704, ERROR ITMS-90022

旧巷老猫 提交于 2019-12-23 07:37:10
问题 ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0." WARNING ITMS-90704: "Missing Marketing Icon. iOS Apps must include a 1024x1024px Marketing Icon in PNG format. Apps that do not include the Marketing Icon cannot be submitted for App Review or Beta App Review." I set the appropriate image (PNG format) in all fields of the xcassets file. But one error and warning

Xcode 9 borderColor doesn't work in User Defined Runtime Attributes

橙三吉。 提交于 2019-12-23 01:38:30
问题 I'm using this CALayer extension: var borderUIColor: UIColor { set { self.borderColor = newValue.cgColor } get { return UIColor(cgColor: self.borderColor!) } } I thought that maybe because of this extension my borderColor of the Submit button from the bottom of the page doesn't change to white (as I want it to be): But no, I hooked up an IBOutlet and tried to set directly the color like this: submitButton.layer.borderColor = UIColor.white.cgColor Did it in viewDidLoad , viewWillAppear and