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

How can I add file to project in Xcode 9?

I created a new project in xcode 9. I want to add image file to project. When I delete this file from desktop, Image file appears in red? But in project folder, I find this image file. In Xcode 8 its working fine, Any idea?
aiur
  • 649
  • 2
  • 7
  • 21
13
votes
3 answers

Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType

When I tried to run the app in simulators, I hold Xcode 8.3.2 and Xcode 9 beta 1 and my project was running in Xcode 8.3.2. I got the below errors. Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType :…
iPC
  • 5,916
  • 3
  • 26
  • 38
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
11
votes
1 answer

Using pods with Playgrounds in Xcode 9 (beta)

I would like to use some CocoaPod libraries in playgrounds, but can't see a way of linking the playground with a target in Xcode 9 (beta 4). I think this is doable in earlier Xcode versions, but don't have an earlier version of Xcode on my current…
Yasir
  • 2,312
  • 4
  • 23
  • 35
11
votes
12 answers

Xcode 9 doesn't have any simulator device

I just downloaded xcode 9 beta, but there is no simulator within it. Try to add new simulator but the create button doesn't work. Please help By "no simulator within it" I mean there is option to build with simulator. See . Also, the create button…
sahara108
  • 2,829
  • 1
  • 22
  • 41
10
votes
2 answers

How can I use Realm with Swift 4?

I'm trying to run my current project in the new Xcode 9 beta, but when I do so it says Module compiled with Swift 3.1 cannot be imported in Swift 4.0. How can I solve this problem? I'm not using cocoapods.
Lennart P.
  • 316
  • 1
  • 6
  • 20
9
votes
2 answers

Xcode 9: Block-compressed payload operation failed

MacBook Pro El Capitan (10.11.6) here. I'm trying to install Xcode 9 so that I can play around with ARKit. From the Apple Developer's site, the only version of 9 I can find is Xcode_9_beta_6.xip (please correct me if I'm wrong!), so I download…
smeeb
  • 27,777
  • 57
  • 250
  • 447
9
votes
1 answer

"API error: (null) returned 0 width, assuming UIViewNoIntrinsicMetric" in Xcode 9 beta

I'm working on several projects and it happens the same error. I still can't figure out what's causing it. Is it the problem with my code or Xcode 9 beta? MyApp[22724:4000717] API error: (null) returned 0 width, assuming UIViewNoIntrinsicMetric
IceApinan
  • 111
  • 2
  • 5
9
votes
2 answers

Xcode 9: Swift dependency analysis error

I have an iOS-app written in obj-C and UI-tests for the app in Swift. I recently installed Xcode 9 beta 2 and wanted to compile the app. I get the following error: "Dependency Analysis Error > The “Swift Language Version” (SWIFT_VERSION) build…
renraku
  • 851
  • 1
  • 9
  • 16
9
votes
1 answer

How Xcode 9 custom templates changed?

after downloading Xcode 9 beta I noticed change in file templates system. For example I had a simple template that was creating 2 files (it probably shouldn't work that way at all). Base file names are ___FILEBASENAME___.swift and…
Maciej Zajda
  • 165
  • 9
8
votes
4 answers

Keyboard shortcut for code folding in Xcode 9

Code folding doesn't work with key binding Shift + Alt + Cmd + <- left in Xcode 9. Is anyone having same problem with Xcode 9?
Sukhpreet
  • 933
  • 1
  • 9
  • 24
8
votes
2 answers

is `addingPercentEncoding` broken in Xcode 9?

in Swift 3.x with Xcode 9 beta 2, using addingPercentEncoding gives unexpected results. CharacterSet.urlPathAllowed always contains ":", so by definition of addingPercentEncoding, it should never escape it. Yet, using this code: // always…
Cœur
  • 37,241
  • 25
  • 195
  • 267
8
votes
3 answers

Vision Framework Barcode detection for iOS 11

I've been implementing a test of the new Vision framework which Apple introduced in WWDC2017. I am specifically looking at the barcode detection - I've been able to get after scanning the image from Camera/Gallery that it's a barcode image or not.…
Hitesh Arora
  • 81
  • 1
  • 4
8
votes
2 answers

How to initialize a MLMultiArray in CoreML

I've got an array of 40 arrays with 12 double features, so the type is [[double]]. Currently I'm sending this data to Google Cloud ML API to get a related prediction. Since Apple recently introduced CoreML and coremltools, I converted my model from…
Lausbert
  • 1,471
  • 2
  • 17
  • 23
7
votes
3 answers

Xcode 9 - Framework breakpoints

In Xcode 7 and 8, I have been able to debug a framework I've been developing by running the containing application within an xcworkspace that also contains the framework project. If I set breakpoints in the framework, they would get triggered at…
FateNuller
  • 878
  • 2
  • 12
  • 27