xcode9-beta

bottom layout deprecated since ios 11.0

大兔子大兔子 提交于 2019-12-03 05:39:06
What can I do to fix Bottom layout is deprecated iOS 11, I am using Xcode 9 beta 2. Simply check the "Use safe area layout guides" button in the File Inspector of the IB. Function of @paper1111 works fine in Xcode Version 9.3.1, but for me not worked first time. After two days of World War with Interface Builder Solution: 1) check the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 2) uncheck the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 3) check again the "Use safe area layout guides" button in the File Inspector

Failed to register for BoringSSL log debug updates

元气小坏坏 提交于 2019-12-03 05:01:09
问题 When debugging app in Xcode 9 beta while it's running on iPhone with iOS 11 beta installed, I started to notice following messages when performing networking calls: [] network_config_register_boringssl_log_debug_updates Failed to register for BoringSSL log debug updates [BoringSSL] Function boringssl_context_get_peer_npn_data: line 1212 Peer's advertised NPN data is NULL or empty Any idea what is causing this? 回答1: Open the Xcode Scheme editor and add a new environment variable OS_ACTIVITY

iOS - Shortcut for jumping to definition in Xcode 9?

狂风中的少年 提交于 2019-12-03 02:54:25
问题 In previous Xcode version , I could jump to definition with simple Cmd + click on that method/variable . But in Xcode 9, I feel uncomfortable to jump to definition . Does anyone has a better solution for jumping to definition in Xcode 9 ? I am tired of selecting options from dropdown list. 回答1: Ashish and Ghulam's answers were great but it still kinda bugged me that things had changed and I couldn't jump to definition as before. Then I found this... Xcode9Beta2-Preferences->Navigation-

Switching branch on Xcode 9

眉间皱痕 提交于 2019-12-03 02:53:54
问题 I am having trouble finding the menu item to switch branch using Xcode 9. The working copies menu seems to have disappeared. Any ideas? Xcode 9 Xcode 8 回答1: Press ⌘2 to open the new Source Control Navigator. Right-click on the master icon. To switch to a different branch Right-click on a non-current branch Choose Checkout... Press ↩ or click on the Checkout button. 回答2: Expose the left side window (Navigator) in your Xcode by selecting this option (you will see this on the top right side of

How to quit or close single simulator from opened multiple simulator in Xcode 9?

怎甘沉沦 提交于 2019-12-03 01:32:44
问题 I run multiple simulator and I need to close one of them. How can i do this? Because I tried to close it like we does in older version of Xcode but can't close. 回答1: Select Simulator.. Go into File Menu -> Close window or press [Command + W ]. It will close the simulator which is on top . Go into Windows menu -> uncheck Show Device Bezels. Then you can close using red cross icon on simulator. 回答2: There are two ways to close particular Simulator form Multiple simulators Long-press power

Module compiled with swift 4.0 cannot be imported in swift 3.1

微笑、不失礼 提交于 2019-12-02 22:55:12
Apparently I have managed to build my project in Xcode 9 beta and now I only get the error Module compiled with swift 4.0 cannot be imported in swift 3.1 When I run the project in Xcode 8. The module in my case are Alamofire. I have tried to restart Xcode but nothing happens any ideas how to solve this issue? You have two options that you can do: Clean the project and then try to re-build your solution and see if it works. If it don´t work and you still get the same error message then do the following steps and it should work for you: Open your podfile and remove Alamofire Run pod update Re

Code migration from Swift 2.x to Swift 4

北城余情 提交于 2019-12-02 20:17:25
We have big enough project which is built up with Swift 2.x and now Apple has just released Swift 4 so to move forward for latest version of Swift which path we can choose... Do we need to migrate our code to Swift 3 first? Or we can directly migrate our code to Swift 4 using Xcode 9? Yes, you must migrate your code in Swift 3 compatible version. Xcode 9 allows conversion/migration from swift 3.0 only. Swift 3.2 is supported by Xcode 9 & Xcode 8 both. Convert your source code from Swift 2.0 to 3.2 using Xcode 8 and then continue with Xcode 9 (Swift 3.2 or 4). For easier migration of your code,

Failed to register for BoringSSL log debug updates

血红的双手。 提交于 2019-12-02 18:40:14
When debugging app in Xcode 9 beta while it's running on iPhone with iOS 11 beta installed, I started to notice following messages when performing networking calls: [] network_config_register_boringssl_log_debug_updates Failed to register for BoringSSL log debug updates [BoringSSL] Function boringssl_context_get_peer_npn_data: line 1212 Peer's advertised NPN data is NULL or empty Any idea what is causing this? Open the Xcode Scheme editor and add a new environment variable OS_ACTIVITY_MODE and set to disable . This approach seems to stop all NSLog logging, which is a problem. For a more

iOS - Shortcut for jumping to definition in Xcode 9?

妖精的绣舞 提交于 2019-12-02 16:28:28
In previous Xcode version , I could jump to definition with simple Cmd + click on that method/variable . But in Xcode 9, I feel uncomfortable to jump to definition . Does anyone has a better solution for jumping to definition in Xcode 9 ? I am tired of selecting options from dropdown list. user8315745 Ashish and Ghulam's answers were great but it still kinda bugged me that things had changed and I couldn't jump to definition as before. Then I found this... Xcode9Beta2-Preferences->Navigation->Command-click on Code:->Jump To Definition : Solution 1: Go to Xcode menu Click on Preferences Select

Switching branch on Xcode 9

≯℡__Kan透↙ 提交于 2019-12-02 16:27:28
I am having trouble finding the menu item to switch branch using Xcode 9. The working copies menu seems to have disappeared. Any ideas? Xcode 9 Xcode 8 Press ⌘2 to open the new Source Control Navigator. Right-click on the master icon. To switch to a different branch Right-click on a non-current branch Choose Checkout... Press ↩ or click on the Checkout button. Expose the left side window (Navigator) in your Xcode by selecting this option (you will see this on the top right side of your Xcode window): Now select the second tab: Right click on the branch you are intending to checkout and hit the