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
32
votes
6 answers

Make UIColor Codable

struct Task: Codable { var content: String var deadline: Date var color: UIColor ... } There are warnings saying "Type 'Task' does not conform to protocol 'Decodable'" and "Type 'Task' does not conform to protocol 'Encodable'". I…
Lambdalex
  • 481
  • 1
  • 5
  • 10
32
votes
5 answers

"Connect via network" wireless debugging not working Xcode 9

I am trying to run my iOS app via wifi network. But its not working as I expected. Connected Network sign is not displaying. I am using: macOS Sierra - 10.12.6 (in Mac mini) Xcode - 9.0 (9A235) iOS - 11.0 NOTE: Mac mini and iPhone both are…
Jay Patel
  • 2,642
  • 2
  • 18
  • 40
32
votes
1 answer

Swift 4 ,must be used from main thread only warning

When I using Swift4in Xcode 9 gives me UIApplication.delegate must be used from main thread only .... must be used from main thread only UI API called from background thread Group Purple Warning. My codes; var appDelegate =…
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
31
votes
4 answers

Xcode 9 - Simulator: Screenshots taken are not of correct resolution for ItunesConnect / AppStore Connect

In the old version of the Xcode Simulator (Xcode 8), you could press Command + 1, and it would show the simulator to be it's maximum dimensions (100%), even if that involved it expanding past the visible screen space. You could then press Command+S…
FranticRock
  • 3,233
  • 1
  • 31
  • 56
30
votes
8 answers

'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.37_0')'

I'm using Xcode 9.0. My pod file: pod 'Alamofire', '~> 4.3' pod 'SwiftyJSON' pod 'AlamofireSwiftyJSON' pod 'KSToastView', '0.5.7' pod 'SDWebImage', '~> 4.0' pod 'NVActivityIndicatorView' pod 'Firebase/Core' pod 'Firebase/Messaging' pod…
Himanshu Moradiya
  • 4,769
  • 4
  • 25
  • 49
29
votes
4 answers

Take screenshot in iPhone Simulator in Xcode 9

How can I take screenshot of size 1242 x 2208 (required for App Store) from iPhone 8 Plus simulator in Xcode 9.0? I can't resize the simulator like we did in earlier versions of Xcode. Is there any way to do it?
Rohitax Rajguru
  • 893
  • 2
  • 13
  • 35
29
votes
5 answers

How do I install Xcode 9 without updating macOS?

Does anyone have any idea to install Xcode 8 OR Xcode 9 without updating macOS? I want to update my Xcode 7.1 to Xcode 8 or Xcode 9 (or 9.1) Beta. But it is not allowing me to update directly on OS X Yosemite 10.10. And I don't want to update my OS…
Samkit Shah
  • 721
  • 1
  • 7
  • 18
29
votes
5 answers

Reduce the size of the iPhone Simulator window?

Is it possible to resize the iPhone Simulator? I'm using screen capture software to record a demo of my iPhone application, and it would be handy to be able to resize the iPhone Simulator window. Thanks!
James Sun
  • 1,461
  • 2
  • 19
  • 26
28
votes
2 answers

How can I delete derived data in Xcode 9?

I have installed Xcode 9 today morning. It works fine but I want to understand the way to delete the derived data. Is there any specific way to remove it?
Nirav Jain
  • 5,088
  • 5
  • 40
  • 61
28
votes
4 answers

Xcode 9, Carthage. iTunes Connect Error: "Invalid Bundle - Disallowed LLVM instrumentation"

Today I downloaded Xcode 9 and made the necessary changes for my application to compile. The application is compiling and running locally without any issues. Using Xcode 9 I uploaded it to the App Store. Upload was successful without any errors. I…
zirinisp
  • 9,971
  • 5
  • 32
  • 38
28
votes
4 answers

Xcode 9 asset catalog Preserves Vector Data not working?

I thought the new Preserves Vector Data checkmark in the Xcode 9 asset catalog would finally give us resizing of vector PDF images, but apparently not. Here's my test image seen at two zooms in Preview: Nice and sharp with lots of zoom, so clearly…
matt
  • 515,959
  • 87
  • 875
  • 1,141
27
votes
4 answers

The 'Apple Developer Program License Agreement' has been updated

My Xcode automatically updated now I'm getting this error: The 'Apple Developer Program License Agreement' has been updated. In order to access certain membership resources, you must accept the latest license agreement. I feel so dumb. Where…
Matt
  • 33,328
  • 25
  • 83
  • 97
27
votes
2 answers

Xcode 9: Provisioning profile is Xcode managed, but signing settings require a manually managed profile

I need to archive my app for submission to iTunes Connect. It was OK with Xcode 8.3.3: It's NOT OK with Xcode 9.0: When archiving, I get: Code Signing Error: Provisioning profile "XC iOS: *" is Xcode managed, but signing settings require a…
Cœur
  • 37,241
  • 25
  • 195
  • 267
27
votes
1 answer

Xcode9: Fix All In Scope is always disabled

Xcode9: Editor- Fix All In Scope is always disabled How can I enable it ?
Wendy Xiao
  • 281
  • 2
  • 3
26
votes
8 answers

Objective-C @available guard AND'ed with more conditions

Objective-C has an @available expression in XCode 9+ / LLVM 5+ that allows you to guard a block of code to at least a certain OS version so that it won't emit unguarded availability warnings if you use APIs that are only available on that OS…
user102008
  • 30,736
  • 10
  • 83
  • 104