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.

1771 questions
92
votes
8 answers

Module compiled with Swift 4.0 cannot be imported in Swift 4.0.1

However I have recompiled the framework using the same Xcode and it still gives me this error. Base SDK iOS 11.1 for both Swift Language Version Swift 4.0 for both Not using Pods/Carthage I hope someone might know
Simon
  • 2,379
  • 2
  • 15
  • 29
80
votes
0 answers

iOS 11: ATS (App Transport Security) no longer accepts custom anchor certs?

I am leasing a self signed certificate using NSMutableURLRequest and when the certificate is anchored using a custom certificate with SecTrustSetAnchorCertificates IOS 11 fails with the following error message: refreshPreferences: HangTracerEnabled:…
Wayne
  • 2,617
  • 2
  • 19
  • 38
68
votes
9 answers

Safe area layout guides in xib files - iOS 10

I started adapting my app for iPhone X and found an issue in Interface Builder. The safe area layout guides are supposed to be backwards compatible, according to official Apple videos. I found that it works just fine in storyboards. But in my XIB…
Tiago Lira
  • 2,543
  • 1
  • 16
  • 16
64
votes
22 answers

Xcode 9: Could not attach to pid

I've been facing an issue (frequently) with the recent major release of the iOS application development tool - Xcode 9-beta. It's showing me the following error frequently while running/debugging app in Simulator (iOS 11). Could not attach to pid :…
Krunal
  • 68,602
  • 40
  • 230
  • 241
62
votes
2 answers

Time profiler in instruments is not working

I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before. I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in…
Carusd Ray
  • 973
  • 7
  • 11
61
votes
4 answers

Xcode 9 Bug: Cannot find cdtool

After installing Xcode 9 beta, Xcode 8 gives me an error when compiling a project: Cannot find cdtool at '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/cdtool': Cannot find a simulator…
Jason C. Howlin
  • 3,838
  • 3
  • 19
  • 27
58
votes
7 answers

Enable code-folding by default

Is there a way to tell XCode fold methods/functions by default when opening a file?
Infinite
  • 2,692
  • 2
  • 25
  • 32
54
votes
4 answers

How to use swift 4 Codable in Core Data?

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…
hgl
  • 1,424
  • 2
  • 14
  • 23
53
votes
8 answers

Code Signing "No account for team" message when signing for different developer account

I’ve been working on an app for a client using my own Apple Developer account so far while waiting for them to register a Developer account themselves. They have done this— and the time has come for them to be able to build and run the project on…
chmod
  • 893
  • 1
  • 8
  • 17
46
votes
12 answers

Xcode 9 - failed to emit precompiled header

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…
Shubham
  • 1,154
  • 2
  • 10
  • 24
45
votes
6 answers

Xcode 9 expand/collapse braces/brackets {} side bar missing

Can't find one under Xcode ▶ Preferences/Text Editing ▶ "Code Folding Ribbon" box.
Yakiv Kovalskyi
  • 1,697
  • 1
  • 12
  • 28
44
votes
8 answers

100+ "Class implemented in both MapKit and VectorKit" warnings with Xcode 9.0.1 and above

While running my project (which doesn't even use MapKit), my console gets spammed with more than a hundred class duplicate warnings: objc[6377]: Class ___MKPlaceBusinessInfoItemAccessibility_super is implemented in both…
Tamás Sengel
  • 47,657
  • 24
  • 144
  • 178
43
votes
8 answers

How can I get full-resolution screenshots when the Simulator's "Pixel Accurate" option is disabled?

On Xcode 9.1 the Pixel Accurate option is disabled and grayed out under the Window menu. How can I take App Store screenshots without this option?
Crashalot
  • 31,452
  • 56
  • 235
  • 393
43
votes
5 answers

How to build Swift 3 project on Xcode 9?

Xcode 9 Release Notes says that Swift 3 compilation is supported: One compiler for Swift 4 and Swift 3, Swift 4 and Swift 3 targets can be compiled together in the same project. I have installed Xcode 9 beta. But when I press Build it shows bunch…
Exey Panteleev
  • 1,150
  • 2
  • 12
  • 15
42
votes
3 answers

Xcode 9.1 simulator stay in front button missing?

There used to be a button called "stay in front" in older versions of ios simulater. I used this often, but in recent updates it seems to be removed. Is there a any way to activate this feature ? new window menu old window menu
Kaan Erkol
  • 546
  • 5
  • 9