xcode9

Xcode 9 doesn't have any simulator device

元气小坏坏 提交于 2019-11-29 02:02:36
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 doesn't work Go to Xcode Preferences -> Locations and go to the Derived Data location in Finder: Just remove all contents from it, then right click on Xcode icon and quit it, and reopen it: It is a simulator but you need to close Xcode 8 if you have it open and restart Xcode 9 beta . This may happen due to multiple Xcode installed on machine or might

How to set unsafe area background color for ios 11

我怕爱的太早我们不能终老 提交于 2019-11-28 21:30:21
Creating some new view controllers with xcode 9 so now I have a few safe areas to deal with. I am currently trying to do something fullproof, meaning keeping the unsafe area as it is (since I always display the status bar) and having the background color extending to the fullscreen (to keep a similar behaviour to what I used to have). On an additional note, this also affect page controls since when you have some the system will put them in the bottom unsafe area which will also be displayed in black. I cannot find a way for the background color to extend behind the unsafe area though. Any

Xcode can only refactor C and Objective-C code. How to rename swift class name in Xcode 6?

给你一囗甜甜゛ 提交于 2019-11-28 20:41:31
问题 I have created a new Single View Application Project in Xcode 6 beta version. I want to rename swift class from ViewController.swift to some other name. But when I select Refactor -> Rename, it gives error Xcode can only refactor C and Objective-C code . Any idea how to rename swift class in Xcode 6? UPDATE: Finally Xcode 9 is supporting Refactoring for Swift. It took Apple 3 years to add this basic feature. Refactoring 回答1: You can change name of a class in File Inspector at the right side

How to build Swift 3 project on Xcode 9?

末鹿安然 提交于 2019-11-28 20:05:17
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 of errors. Are some special preparations need to do when use Swift 3 in Xcode 9? UPD: Module compiled with Swift 3.1 cannot be imported in Swift 4.0 Select the target, goto Build Settings > Swift Language Version : All the above answers are answering the wrong question. When using Xcode 9, you are using the Swift 4 compiler (even if you are using it

How do I install Xcode 9 without updating macOS?

我的未来我决定 提交于 2019-11-28 19:11:55
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 to El Capitan now, so how can I install Xcode 8 on OS X Yosemite 10.10. Naup Xcode 8 will work on OS X 10.11 (El Capitan) but the apps you build with won't, because the only SDK available is macOS 10.12 SDK, i.e. macOS Sierra's. From release notes: Compatibility Xcode 8 requires a Mac running macOS Sierra 10.12 or OS X El Capitan 10.11.5 or later.

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

丶灬走出姿态 提交于 2019-11-28 17:24:12
问题 Can't find one under Xcode ▶ Preferences/Text Editing ▶ "Code Folding Ribbon" box. 回答1: Updates in Xcode 10: Xcode 10 has increased support for code folding, including: A new code folding ribbon showing all of the multi-line foldable blocks of code in the editor A new style for folded code in the editor that allows you to edit lines with folded code Support for folding any block of code enclosed in curly braces Support for folding blocks of code from the folding ribbon, from structured

Xcode 9: Could not attach to pid

怎甘沉沦 提交于 2019-11-28 17:20:02
问题 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 : “2370” Ensure < project title > is not already running, and < system username > has permission to debug it. Here is a snapshot for the same issue: What would be permanent solution of this issue, as it's disturbing frequently? 回答1: If issue is on OS

How do I toggle between Debug and Release builds in Xcode 6 / 7 / 8?

痞子三分冷 提交于 2019-11-28 17:16:48
问题 How do I get Xcode to build an OS X app in release mode? I can only seem to find instructions for earlier versions and none of the screenshots match. I didn't see anything when I put "release" into the help menu's search. 回答1: In Xcode 6 - 10: Choose Product -> Scheme -> Edit Scheme . Change the Build Configuration under the Info tab. Shortcut: hold Alt ⌥ and click the run button ▶ . 回答2: The easiest way with a project that has the default set up for schemes is just to do Product -> Build For

iOS Simulator crashes after boot with “available but has no defaultDisplay”

倾然丶 夕夏残阳落幕 提交于 2019-11-28 17:10:07
问题 While running a project into the simulator, it crashes after booting: Crash: 'NSInternalInconsistencyException', reason: 'Device <redacted>, Booted) is available but has no defaultDisplay' I already cleaned the project files and changed the iOS image but it crashes anyway. Any clue? 回答1: Close all simulators and just run sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService to restart the service. All simulators will launch as usual. 来源: https://stackoverflow.com/questions/51708445/ios

Enable code-folding by default

蹲街弑〆低调 提交于 2019-11-28 16:59:35
问题 Is there a way to tell XCode fold methods/functions by default when opening a file? 回答1: Not sure if this is an OS change, or an Xcode change, but on Lion with Xcode 4 , some of these commands cited by Griffo are performed with the Option modifier (the ⌥ key), not control. I've made some changes to reflect this: Fold ⌥⌘← option+command+left Unfold ⌥⌘→ option+command+right Unfold All ⌥U option+U Fold Methods/Functions ⌥⌘↑ option+command+up Unfold Methods/Functions ⌥⌘↓ option+command+down Sorry