xcode9

What is TIC Read Status 1:57 in iOS11/Xcode 9?

让人想犯罪 __ 提交于 2019-11-26 18:24:12
After updating to Xcode 9, using Swift 3 and the iPhone X simulator, my console is full of: TIC Read Status [11:0x0]: 1:57 TIC Read Status [11:0x0]: 1:57 TIC Read Status [11:0x0]: 1:57 ... What is that and how do I fix it? Help is very appreciated. PS: I prefer not to just "silence" it with an Environment Variable in the build scheme. Apple staff gave the following answer: TIC expands to “TCP I/O connection”, which is a subsystem within CFNetwork that runs a TCP connection 1 and 57 are the CFStreamError domain and code, respectively; a domain of 1 is kCFStreamErrorDomainPOSIX and, within that

iOS 11 Layout guidance about safe Area for iPhone x

旧街凉风 提交于 2019-11-26 18:14:02
问题 My application already in app store, yesterday i have updated my Xcode version to 9 and works fine except iPhone x . UI got collapsed. 1.Here I have Created Two UIView (both are fixed height) named as Header and Tab bar and I have hidden my NavigationBar entire app. 2.Added extension to UIViewController for making Header and Tab bar func addHeaderTab(currentViewController:UIViewController,content:String, isMenu:Bool){ let noView = TopHeaderView() noView.tag = 12345 noView.isMenu = isMenu

CredStore Perform Query error

大兔子大兔子 提交于 2019-11-26 17:27:17
问题 I am running into an issue while doing API calls to my apps backend, every connection now prompts with CredStore - performQuery - Error copying matching creds. Error=-25300, query={ atyp = http; class = inet; "m_Limit" = "m_LimitAll"; ptcl = http; "r_Attributes" = 1; srvr = "myappsurl.com"; sync = syna; } I am a little lost as I am not sure what is causing this, or what CredStore even does. What purpose does CredStore serve in iOS? 回答1: This error occurs when trying to retrieve an

Location access - App is not asking for user permission to access location - iOS 11

痴心易碎 提交于 2019-11-26 16:46:08
问题 Description App is not asking for user permission to access location and getting state notDetermined Working perfectly till iOS-10 var locationManager : CLLocationManager! func getLocationDetails() { locationManager.delegate = self locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.requestAlwaysAuthorization() locationManager.allowsBackgroundLocationUpdates = true locationManager.startUpdatingLocation() } func locationManager(_ manager: CLLocationManager,

Xcode 9 commit: Couldn't communicate with helper application

瘦欲@ 提交于 2019-11-26 16:32:03
问题 I've recently updated to OSX Sierra (from El Capitan) and to Xcode 9. I removed all compatibility issues (like autolayout issues) and would like to commit to my local gitrep now. the following error appears: I thought it might be the same bug appeared in XCode 7 mentioned here: Xcode and Git Source Control : “The working copy XXXXX failed to commit files” But it wasn't. I tried the solution mentioned above. Username and EMail are properly set. I did save everything, tried restarting the

How to resize the iPhone/iPad Simulator?

不羁岁月 提交于 2019-11-26 16:00:56
The iPad-simulator is really small (like one third the size of the real iPad screen) on my 23" Full-HD screen (and also on the 15" MacBook Pro ). Is there a way to resize it? I know it must maintain size and dpi-ratio to prevent sub-pixels, but I can hardly see anything withoout a magnifier. ⌘ + 1 for 100% ⌘ + 2 for 75% ⌘ + 3 for 50% Xcode 9.x : Select Simulator Goto Window tab Select Physical Size option ( cmd + 1 ) Now if this dosen’t make size as per your interest then follow below steps : Select Simulator Goto edge of simulator . This will convert your cursor to resize option

How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?

这一生的挚爱 提交于 2019-11-26 14:50:44
Wireless debugging was recently added as a feature in Xcode 9, iOS 11, and tvOS 11. Apple TV 4K doesn't have a USB port, so it requires wireless debugging. How do you perform this wireless debugging in Xcode? Set up a device for network debugging from help.apple.com NOTE: Mac system and iPhone/iPad should share same network to use wireless debugging. Debug your app running on an iOS or tvOS device over a WiFi or other network connection. Note: Network debugging requires Xcode 9.0 or later running on macOS 10.12.4 or later , and on the device, requires iOS 11.0 or later , or tvOS 11.0 or later

How to use swift 4 Codable in Core Data?

北城余情 提交于 2019-11-26 11:13:49
Codable seems a very exciting feature. But I wonder how we can use it in Core Data? In particular, is it possible to directly encode/decode a JSON from/to a NSManagedObject? I tried a very simple example: and defined Foo myself: import CoreData @objc(Foo) public class Foo: NSManagedObject, Codable {} But when using it like this: let json = """ { "name": "foo", "bars": [{ "name": "bar1", }], [{ "name": "bar2" }] } """.data(using: .utf8)! let decoder = JSONDecoder() let foo = try! decoder.decode(Foo.self, from: json) print(foo) The compiler failed with this errror: super.init isn't called on all

Xcode 9 - failed to emit precompiled header [duplicate]

陌路散爱 提交于 2019-11-26 09:11:02
问题 This question already has answers here : Failed to emit precompiled header for bridging header (15 answers) Closed last year . I have a project in Objective-C as well as in swift by taking MyProjectName-Bridging-Header.h and i also configured the Objective-C Bridging Header. Also i have added \'MyprojectName-Swift.h\' in .pch file. This works fine on xcode 8.2 but when i build my project from xcode 9 i am getting the below error. failed to emit precompiled header \'/Library/Developer/Xcode

What is TIC Read Status 1:57 in iOS11/Xcode 9?

て烟熏妆下的殇ゞ 提交于 2019-11-26 06:18:00
问题 After updating to Xcode 9, using Swift 3 and the iPhone X simulator, my console is full of: TIC Read Status [11:0x0]: 1:57 TIC Read Status [11:0x0]: 1:57 TIC Read Status [11:0x0]: 1:57 ... What is that and how do I fix it? Help is very appreciated. PS: I prefer not to just \"silence\" it with an Environment Variable in the build scheme. 回答1: Apple staff gave the following answer: TIC expands to “TCP I/O connection”, which is a subsystem within CFNetwork that runs a TCP connection 1 and 57 are