Questions tagged [xcode9]

This tag should only be used for questions specific to the usage and features of Xcode 9. Do not use this tag just because you are using Xcode to develop your app. General Xcode questions should use the non-version specific xcode tag. Use tags appropriate for the OS such as ios or macos.

Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. The Xcode development environment bundles the Instruments analysis tool, Simulator, and the OS frameworks in the form of tvOS SDKs, watchOS SDKs, iOS SDKs, and macOS SDKs.

1766 questions
21
votes
2 answers

Can I delete the tvOS from react native project?

Eventually, I will be submitting a react native app to the app store but the app will only run on iOS, not tvOS. Will I be able to delete these targets and stuff and submit the project with no problem?
Jeebs600
  • 269
  • 2
  • 7
21
votes
3 answers

Negating Objective-C's @available keyword

I would like to run a piece of code only if the iOS version of the current device is below a specific version, as specified here. The code examples given by Apple look like this: if (@available(iOS 10.0, *)) { // iOS 10.0 and above } else { //…
StatusReport
  • 3,397
  • 1
  • 23
  • 31
21
votes
4 answers

CoreData: annotation: Failed to load optimized model at path with Xcode 9 GM

Failed to load OMO warning (potential crash): Project with xcode 9 following warning is observed in the console during debug/release builds (iOS 11 GM/beta & iOS 10): CoreData: annotation: Failed to load optimized model at path…
lal
  • 7,410
  • 7
  • 34
  • 45
21
votes
1 answer

GoogleMaps on simulator in Xcode 9 uses over 100% of CPU when moving the map

So I've now converted my project to use Swift 4 in Xcode 9, and have started testing my app. It's a big app with four distinct tabs, and nearly everything is working as expected. One of the tabs is a map, using GoogleMaps. I have never had any…
Sti
  • 8,275
  • 9
  • 62
  • 124
21
votes
2 answers

What is safe area in xib in xcode 9?

Can you please let me know what is safe area (highlighted in image) in xibs in xcode 9. and what is use of this?
Jagdeep Singh
  • 2,556
  • 3
  • 18
  • 28
20
votes
3 answers

Cocoa App webview not loading request

I have used webview to load url but it is not loaded. i have tried the same with wkwebview but couldn't load url. I have done following import WebKit Info.plist Allow Arbitrary Loads - YES Allow Arbitrary Loads in Web Content - YES LOG:…
Rakshit Korat
  • 1,159
  • 10
  • 23
20
votes
3 answers

refreshPreferences HangTracerEnabled / HangTracerDuration messages in iOS 11 + Xcode 9

When update to iOS 11, after run app in iPhone, I receive this message in Xcode console: SibDiet[924:111682] refreshPreferences: HangTracerEnabled: 0 SibDiet[924:111682] refreshPreferences: HangTracerDuration: 500 SibDiet[924:111682]…
amin
  • 481
  • 5
  • 13
20
votes
2 answers

What do the arrows in the navigator pane on Xcode indicate?

In earlier versions of Xcode the source control tool would indicate that you have modified a file by showing a bold 'M' to the right of the file name. In Xcode 9 I noticed that some of my files now show either an upward or upward facing arrow. What…
Toma
  • 2,764
  • 4
  • 25
  • 44
19
votes
4 answers

Can't use safe areas in Xcode 9 after upgrading minimum deployment target to iOS 9

I have just changed my app from supporting iOS 8 and up to supporting iOS 9 and up. I believe I've done this properly, since when I now build my app, I'm getting warnings for everything in the app which was deprecated in iOS 9. I am using Xcode…
Jordan Wood
  • 2,727
  • 3
  • 12
  • 17
19
votes
7 answers

Migration to Swift 4 from Swift 3.2 giving "failed to import bridging header " error

As apple has released Xcode 9 beta version with Swift 4.0 support. I have been trying to upgrade my code to Swift 4.0 from Swift 3.2. But it keeps giving me failed to import bridging header error whereas my project build successfully. Xcode error…
Varun Mehta
  • 1,733
  • 3
  • 18
  • 39
18
votes
2 answers

Unable to capture view hierarchy

Error: Unable to capture view hierarchy. Details: Log Title: Data source expression execution failure. Log Details: error evaluating expression “(id)[[(Class)objc_getClass("DBGTargetHub") sharedHub] …
MisterDeng
  • 181
  • 1
  • 3
18
votes
1 answer

Xcode 9 Server: Unable to boot device due to insufficient system resources

I'm trying to run my unit tests on all device simulators from iOS 8.4 to 11.0 at the same time by checking the option 'Run test in parallel' when setting up the Xcode Bot. Unfortunately after trying to boot the 13th simulator it failes with the…
Lukas Würzburger
  • 6,543
  • 7
  • 41
  • 75
18
votes
1 answer

BoringSSL Error when I compile my App in Xcode 9

I made an App with "Google Firebase" as my back-end. I want my App to be able to send push notifications, and actually, I have all setted up, however, when I compile my App, it builds perfectly and without errors and warnings, but in the console,…
Gerard Riera
  • 183
  • 1
  • 11
18
votes
12 answers

Unable to install app in simulator Xcode 9 beta

I downloaded Xcode 9 beta recently, and when I tried to run my app in the simulator it is not getting installed. I am getting this error in my Xcode every time I try to run the app. This app was unable to be installed. The application used to…
Akshay Sunderwani
  • 12,428
  • 8
  • 29
  • 52
17
votes
4 answers

How to set unsafe area background color for ios 11

Creating some new view controllers with xcode 9 so now I have a few safe areas to deal with. I am currently trying to do something fullproof, meaning keeping the unsafe area as it is (since I always display the status bar) and having the background…
thibaut noah
  • 1,474
  • 2
  • 11
  • 39