Questions tagged [xcode9-beta]

'Xcode 9 - Beta' is the beta release of Xcode Tool. 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.

248 questions
495
votes
12 answers

The use of Swift 3 @objc inference in Swift 4 mode is deprecated?

Briefly, while using Xcode 9 Beta, I have run into the following warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc…
DaleK
  • 5,009
  • 3
  • 10
  • 8
238
votes
6 answers

How to quit or close single simulator from opened multiple simulator in Xcode 9?

I run multiple simulator and I need to close one of them. How can i do this? Because I tried to close it like we does in older version of Xcode but can't close.
Bhautik Patoliya
  • 2,573
  • 2
  • 9
  • 12
164
votes
14 answers

Xcode 9 - "Fixed Width Constraints May Cause Clipping" and Other Localization Warnings

I downloaded the new Xcode and in Interface Builder I'm having a ton of problems with warnings that say things like: Fixed Width Constraints May Cause Clipping It looks like this: I do have localization for several languages and I understand the…
Dave G
  • 12,042
  • 7
  • 57
  • 83
139
votes
32 answers

iOS 11 iPhone X simulator UITabBar icons and titles being rendered on top covering eachother

Anyone having issue with the iPhone X simulator around the UITabBar component? Mine seem to be rendering the icons and title on top of each other, I'm not sure if I'm missing anything, I also ran it in the iPhone 8 simulator, and one actual devices…
adrian chen
  • 1,538
  • 2
  • 9
  • 9
133
votes
6 answers

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

I am using google maps in Xcode 9 beta, iOS 11. I am getting an error outputted to the log as follows: Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 4442, TID: 837820, Thread name:…
MattBlack
  • 3,616
  • 7
  • 32
  • 58
124
votes
1 answer

"This function declaration is not a prototype" warning in Xcode 9

When using Xcode 9, there are some compiler warnings saying This function declaration is not a prototype. It suggests to add void to the method body, which will resolve it. The issue I am having is that those warnings are also thrown for…
Hans Knöchel
  • 11,422
  • 8
  • 28
  • 49
124
votes
5 answers

Illegal Configuration: Compiling IB documents for earlier than iOS 7 is no longer supported

I recently updated to XCode 9. When I build the app it says "illegal configuration" for some storyboards in my pod files. I tried to recreate the storyboard files but it doesn't help.
NSXCode
  • 1,243
  • 2
  • 8
  • 5
107
votes
12 answers

How can we use Assets Catalog Color Sets?

I usually use custom UIColors on iOS using extensions with Swift, but now with iOS 11/ Xcode 9 we can create Colors Sets. How can we use them? Update - Tip As @Cœur says we can drag&drop de color, and use it like a UIColor object and a possible…
elGeekalpha
  • 1,826
  • 3
  • 13
  • 14
106
votes
5 answers

Switching branch on Xcode 9

I am having trouble finding the menu item to switch branch using Xcode 9. The working copies menu seems to have disappeared. Any ideas? Xcode 9 Xcode 8
Alexander MacLeod
  • 2,026
  • 3
  • 14
  • 22
101
votes
12 answers

navigation bar rightbaritem image-button bug iOS 11

This code works ok in ios10. i get my label and an image button which is the user photo profile, circular round.. ok. but when running xcode 9 ios11 simulator i get it streched out. the button frame has to be 32x32 , when checking on the sim and…
lorenzo gonzalez
  • 1,894
  • 4
  • 14
  • 18
80
votes
14 answers

Xcode 9 : Module compiled with Swift 3.1 cannot be imported in Swift 4.0

After updating to Xcode 9, I tried to build one of my projects. I use the FacebookLogin pod. I have a compiler error in FacebookLogin/LoginButton.swift @testable import FacebookCore ❌ Module compiled with Swift 3.1 cannot be imported in Swift…
Arnaud
  • 955
  • 1
  • 6
  • 15
69
votes
12 answers

iOS - Shortcut for jumping to definition in Xcode 9?

In previous Xcode version , I could jump to definition with simple Cmd + click on that method/variable . But in Xcode 9, I feel uncomfortable to jump to definition . Does anyone has a better solution for jumping to definition in Xcode 9 ? I am…
Bikram Thapa
  • 1,329
  • 1
  • 16
  • 29
64
votes
6 answers

Use the increased navigation-bar title in iOS 11

iOS 11 Beta 1 uses the increased navigation-bar title for almost all system-apps (it started doing this in iOS 10 and the Music app). I am wondering if Apple has a public API for this coming in iOS 11, or whether it will stay private for now. The…
Hans Knöchel
  • 11,422
  • 8
  • 28
  • 49
55
votes
15 answers

Simultaneous accesses to 0x1c0a7f0f8, but modification requires exclusive access error on Xcode 9 beta 4

my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user preference, I have a DataCoordinator.swift class which schedules the API operation and I make this calls from UserDetailViewController.m class to…
Francis F
  • 3,157
  • 3
  • 41
  • 79
44
votes
4 answers

Barcode on swift 4

I'm trying to upgrade mi app to swift 4, but the barcode reader is not working. I have isolated the barcode reader code, and still not working. The camera works but it does not detect the barcode. The code worked just fine on swift 3 iOS 10. This is…
Dx_
  • 1,566
  • 1
  • 16
  • 17
1
2 3
16 17