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
13
votes
3 answers

How to have full screen UITableView (with header) in iPhone X?

I'm updating my app with Xcode 9 for the iPhone X compatibility. I use auto layout and "Use safe Area Layout Guide" is marked. I have a header in my UITableView, and, as you can see in the screenshot below, the header view strictly respects the top…
cmii
  • 3,556
  • 8
  • 38
  • 69
13
votes
1 answer

How to create Named colors in Interface Builder?

How do I setup & use custom named colors in Interface Builder?
danieltmbr
  • 1,022
  • 12
  • 20
13
votes
6 answers

Xcode 9 Storyboards are not displaying properly

On Xcode 9, all my storyboards seem to be displaying in blue outlines only. Doesn't seem to be a new feature....Anyone has the same issue?
tzuer
  • 321
  • 4
  • 12
13
votes
1 answer

Xcode 9 simulator remove frames

The new simulator comes with the frames that make it look more like a phone in Xcode 9 beta. Is there any way to remove this frames and make it look more like the simulator in Xcode 8?
user8118543
12
votes
1 answer

Swift 4: With Codable `Generic parameter 'T' could not be inferred`

I am getting the following error: Generic parameter 'T' could not be inferred on line: let data = try encoder.encode(obj) Here is the code import Foundation struct User: Codable { var firstName: String var lastName: String } let u1 =…
user1107173
  • 10,334
  • 16
  • 72
  • 117
12
votes
2 answers

Xcode 9: Using named colors with IBDesignable and IBInspectable results in Interface Builder error, but compiles without issue

I use UIColor.named("myColor") throughout my app since Xcode 9 came out. While having a shot at a custom implementation of UITextField as an IBDesignable class, I kept getting the following error: error: IB Designables: Failed to render and update…
Fulco
  • 284
  • 1
  • 3
  • 16
12
votes
3 answers

Can't run UITest on iphone 4s simulator with xcode 9

Project can build properly on iphone 4s simulator but trying to run UITest on it gives me the error : The bundle “MyappUITests” couldn’t be loaded because it doesn’t contain a version for the current architecture. Try installing a universal version…
thibaut noah
  • 1,474
  • 2
  • 11
  • 39
12
votes
9 answers

Xcode 9 Crashing while setting a Texture in SKScene in Spritekit

I am building a game in Spritekit with Xcode currently. After updating to Xcode 9 I've found that every time I set a texture through the .sks file, Xcode crashes instantly. I've restarted my computer, updated the app, reloaded the textures and…
bwiz
  • 407
  • 5
  • 13
12
votes
2 answers

Issue in using "New Build System (Preview)" new feature Xcode 9 Swift 4

In Xcode 9 “New Build System (Preview)” option in Build setting (as in the image shown below) has been introduced and it is used for improving build times for the projects as stated in the WWDC…
Bharath
  • 2,064
  • 1
  • 14
  • 39
12
votes
2 answers

See all changed and staged files in Xcode 9

How to see a list of all changed files (pending stage & commit) with Xcode 9? I don't see an option in Source Control Navigator (keyboard shortcut: command-2) or Source Control menu option. List of files corresponding to git status command on…
lal
  • 7,410
  • 7
  • 34
  • 45
12
votes
1 answer

How to use static library and module map file with Swift?

I'm trying to include a 3rd party static library in my Swift project. I have these two files, among a few others. GoogleConversionTrackingSDK/ACTReporter.h GoogleConversionTrackingSDK/libGoogleConversionTracking.a I added the .a file to the…
Rob N
  • 15,024
  • 17
  • 92
  • 165
12
votes
2 answers

Cryptic NSInternalInconsistencyException when running unit tests in Xcode 9 GM

I'm running my iOS app's unit tests on Xcode 9 GM, and a couple of them are failing with a weird NSInternalInconsistencyException, complaining that some test assertions cannot be reported, because the implicated tests have no associated XCTestRun…
RuslanD
  • 295
  • 3
  • 12
12
votes
5 answers

Xcode 9 custom fonts not working

Custom fonts not working in Xcode 9. However if I open the same project in Xcode 8, the custom fonts work as expected I've ran this piece of code to ensure the fonts show up: NSArray *fontFamilies = [UIFont familyNames]; for (int i = 0; i <…
MobileMon
  • 8,341
  • 5
  • 56
  • 75
12
votes
5 answers

How can I update swift from 3.1 to 3.2, but not to 4.0

I have checked the question related to how to find the current Swift version by the command swift --version, but how can I upgrade my Swift version from 3.1 to 3.2? (because the Xcode 9 only supports Swift 4.0 & Swift 3.2) To build successfully both…
JerryZhou
  • 4,566
  • 3
  • 37
  • 60
11
votes
1 answer

Error Disk I/O in Quick Help Inspector Xcode9

I have been using Xcode recently when I noticed that the Quick Help tab wasn't showing what is used to show, it was just displaying Error Domain=com.apple.DNTDocumentationSupport Code=0 "disk I/O error" UserInfo= {NSLocalizedDescription=disk I/O…
Lunbun
  • 359
  • 2
  • 14