xcode10

Default Directory for Playground on Xcode

▼魔方 西西 提交于 2019-12-07 00:37:36
问题 When I create a new Playground with Xcode 10.1 it always defaults to ~/Library/Autosave Information/ Is there any way I can change this? 回答1: Workaround with symlink . Close XCode -> enter in terminal: mv ~/Library/Autosave\ Information ~/Library/Autosave\ Information\ Old ln -s "_desired_folder_path_" ~/Library/Autosave\ Information 来源: https://stackoverflow.com/questions/53635402/default-directory-for-playground-on-xcode

Run Script Phase after dSYM is generated with Xcode 10 (on build)

Deadly 提交于 2019-12-06 13:32:25
In the New Features section, it states: In the new build system, shell scripts can't rely on the state of build artifacts not listed in other build phases (for example, the Info.plist file or .dSYM files.) Add files the script build phase depends on as explicit input dependencies to the shell script build phase. (40852184) In previous Xcode, the script was executed successfully but now it can execute when the dSYM file size is 0. How can I have a Run Script Phase that will start only after the dSYM file is generated? How can I create an "explicit input dependencies to the shell script build

Xcode 10 doesn't support SVN (Subversion)

試著忘記壹切 提交于 2019-12-06 00:48:56
问题 Installed new Xcode 10 beta version, Couldn't see the option for SVN in Xcode->Preferences->Source Control , I could see Git alone. I guess Xcode 10 removed the SVN GUI, instead it supports only Git. Or I miss something in configuration. Thanks. 回答1: SVN support has unfortunately been removed. As a free alternative you can use alongside Xcode take a look at svnX. HTH 回答2: I'm using svn as well. And Xcode 10 beta is removing the support for svn is really a terrible thing. But I do find a out

How to get to older Xcode beta version?

主宰稳场 提交于 2019-12-05 20:07:01
I have deleted Xcode 10 beta 3 and upgraded to Xcode 10 beta 5. However, due to this bug , I need to go back to an older beta (either 3 or 4). There is no direct link to older betas at https://developer.apple.com/download/ . Is there a way to get to older betas of Xcode? You can go to the https://developer.apple.com/download/ then simply copy the link under the download button of beta 5 and overwrite the 5 to 4 in the link. So you can download all old versions you want. Download from here Don't download from any unofficial website There is an unofficial website tracking Xcode releases here:

Xcode 10 test failure when running on older iOS simulators - “Failed to load test bundle… no suitable image found”

你离开我真会死。 提交于 2019-12-05 19:58:25
问题 I've installed Xcode 10 and upgraded my iOS application to Swift 4.2. When I run my tests (both UI and Unit) via Xcode, on an iPhone simulator running iOS 12, the tests successfully start. When I attempt to run the tests on a simulator running a prior iOS version (e.g. iOS 10.3.1), I get a "failure to load the test bundle". These tests were running successfully on Xcode 9.4. I can run my app on this older simulator without an issue. The Xcode output is as follows ("Reading List" is the

Fat Framework Script for Xcode 10?

谁说我不能喝 提交于 2019-12-05 14:04:57
问题 I used this script in the post-action of the archive in my scheme to make a FAT binary framework. One that will work on the simulator and actual device. https://gist.github.com/gauravkeshre/eabb2a13ef6d673fadec84ca60b56b05 Does anyone know how to convert it to work with Xcode 10? Using the legacy build system fixes the errors, but I would rather not rely on it. Here is the script itself: exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}

Adding code snippet in Code Snippet Library (Xcode 10)

老子叫甜甜 提交于 2019-12-05 11:52:27
问题 Recently when I was using Xcode 10 beta 3 , I tried to make a code snippet and add it to the code snippet library . But the drag drop cannot be done as the code snippet library is detached in Xcode 10 , and hides when I click on a code. How to add code snippet in code snippet library in Xcode 10? 回答1: After some time found out. Select the code you want to add to library. Right-click on it and click on Create Code Snippet from the pop-up menu. Apparently upto Xcode 9.x.x, this option was not

Could not locate device support files: iOS

前提是你 提交于 2019-12-05 10:52:31
I am using Xcode 10.0 and running in 12.1.1(16C50). It was given below error. iOS 12.1.1 not supported by Xcode 10.0: Could not locate device support files Please upgrade your Xcode IDE to 10.1 . Xcode 10.1 Release Notes can be found at, https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_release_notes/ Just download latest OS SDK (iOS 12.2) and paste it on respective location . Downloadable URL: 13.2 13.1 13.0 12.4 12.3 12.2 (16E226) 12.1 12.0 (16A5288q) 11.4 (15F5037c) 11.3 (15E5189d) 11.2 11.1 11.0 (15A372) 10.3 (14E5239d) 10.2 (14C89) 10.1 10.0 (14A5339a) Follow below

Swift - Unable to open file in target Xcode 10

狂风中的少年 提交于 2019-12-05 10:00:32
问题 I am trying to run Aplication which I have downloaded from GitHub. When I run get error unable to open file in target, I have Xcode 10. I already searched for solution and get this one. I had the same problem, but in Xcode 6.1.1 - what fixed it for me was to change the configuration file setting to None for the two Pods-related targets, then run pod install again. The configuration file setting is found by selecting the project (not the target) and then the Info tab. But cant find

Run script for universal framework on Xcode 10

一曲冷凌霜 提交于 2019-12-05 05:16:41
问题 I Xcode 9.x, I was using the below script which worked fine : ###################### # Options ###################### REVEAL_ARCHIVE_IN_FINDER=false FRAMEWORK_NAME="${PROJECT_NAME}" SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal" FRAMEWORK="${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}