xcode9

Xcode 9.1/9.2 beta immediately crashes on launch

本秂侑毒 提交于 2019-12-06 10:59:56
A few days ago, when I would open my Xcode project and navigate to the storyboard, Xcode would hang and then ultimately not respond and then I would have to force quit. I looked up the issue and saw a suggestion to delete ~/Library/Developer folder... now the Xcode window doesn't even appear . The application just immediately crashes without opening. Steps I've taken, in chronological order: Deleted and reinstalled Xcode > did not solve Upgraded from macOS Sierra to High Sierra > did not solve Tried both Xcode 9.1 and 9.2 beta > did not solve Reinstalled Command Line Tools > did not solve

How to remove insertion of double quotes on marked word in Xcode 9

给你一囗甜甜゛ 提交于 2019-12-06 07:38:35
问题 This new function in Xcode 9 seems to be alright, but I can't get used to it, and in most cases it turns out to require me to do more work than the old native function. How can I prevent Xcode from quoting a marked word, rather than replacing the marked word with a single quote? In this case, when marking the word Text and hitting " , I want the result to be Some" , not Some"Text" . When marking the entire SomeText -word and hitting " , I expect the result to be a single " , not a quoted

IOS 11 / “Apps-prefs=root” function not working after update to Swift 3

我怕爱的太早我们不能终老 提交于 2019-12-06 05:52:37
问题 I'm quite new to Swift programming I've made a simple test application that open the settings programmatically, by a specific button. Unfortunately after the update the button, instead of opening the desired setting page (the wifi page, in this case) open only the generic setting screen Could someone please help me understanding what exactly changed in swift 4, in order for me to fix this behaviour? Thansk a lot! First code used - (i've either changed the iOS available to iOS 11.0, in order

Compilation error when using Xcode 9.0 with clang (cannot specify -o when generating multiple output files)

半腔热情 提交于 2019-12-06 05:06:35
I updated my Xcode yesterday (version 9.0) and since then I cannot compile my code with clang anymore. It works great with with apple native compiler, but gives a compilation error with clang from macports. I will explain with more details now... I usually use clang 4.0 because it has openmp support and I change in Xcode by creating a user-defined setting as in the following figure. Image with how to use clang 4.0 from macports in Xcode This has been working perfectly for some time until I updated to Xcode 9.0. Now, I get the following error from clang compiler: cannot specify -o when

“Fixed leading and trailing constraints may cause clipping” bug?

社会主义新天地 提交于 2019-12-05 23:31:37
问题 There's this other question here that addresses a similar issue, but in that case Xcode's behavior is correct, just annoying. In my case, however, I think it's actually a bug: That label can have an unlimited number of lines, so it'll never be clipped, the text will just break. It works fine with every localization: I want the label to be centered and I want the text to be at least 20 pixels away from the margins, so I set fixed constraints for the leading and trailing. Xcode wants me to

Error for ios app: Command /usr/bin/codesign failed with exit code 1

ⅰ亾dé卋堺 提交于 2019-12-05 22:58:33
问题 I have a Ionic3 app for IoS. Until yesterday I was able to open the .xcodeproj in xcode9 and upload the app to my iphone. I have no idea what went wrong but now I get this error "Command /usr/bin/codesign failed with exit code 1" and can not upload the application to phone (using cable) or archive it. My technologies: cli packages : (/usr/local/lib/node_modules) @ionic/cli-utils : 1.15.2 ionic (Ionic CLI) : 3.15.2 global packages : cordova (Cordova CLI) : 6.4.0 local packages : @ionic/app

High Sierra update causes NSTableView to flip and scramble

∥☆過路亽.° 提交于 2019-12-05 17:50:32
I'm updating an existing project which has worked fine for years to High Sierra. The view loads correctly and looks as it always has: Then, after I open a popup and close it again, the view moves things around, flips things, and generally looks very crazy: Notice the Info title drops to the bottom, the left side text items reverse order, and the date and dropdown text flip. Mouse interaction seems very scrambled as well when this happens. I'm not sure where to even start with solving this one, anyone have any ideas? This is using xcode 9 beta 5 and High Sierra Beta 6. Update: This is also in

dyld: Library not loaded: @rpath/libswiftDispatch.dylib

六眼飞鱼酱① 提交于 2019-12-05 17:48:36
I started to use XCode 9.2 (13772) a day ago and I was walking through some basic tutorials, when it crashed with the message: Library not loaded: @rpath/libswiftDispatch.dylib Referenced from: /Applications/Xcode.app/Contents/MacOS/Xcode Reason: image not found Later I discovered that some other applications started to crash with the same message when I tried to open them. I reinstalled all those applications, including XCode, and it helped for all of them, but XCode. It still crashes the same way. Does anybody have any ideas how to fix this? I would try to use AppCode, but it still relies on

How to get available all wifi network name Listing in iOS using swift

假如想象 提交于 2019-12-05 15:07:17
I have simple question but i dont know how to implement this. I need to create an app that can get all list of available wifi networks names and information when user click on some network iphone have to connect to this network. Can i do this? and How ? It is not possible to get all the available wifi networks names and information. BUT it is only possible to get the SSID ( SSID is simply the technical term for a network name) of the network that you are currently connected to. This class will show only the wifi network name you are connected to - import UIKit import SystemConfiguration

How do i handle HTTP load failed (error code: -1009 [1:50]) in swift 4?

て烟熏妆下的殇ゞ 提交于 2019-12-05 11:55:41
I created on app using swift 4 and Xcode 9. when I login into my app I send a request and successful login on result which come from json. But when I switch my internet of my phone it crashed and give me this error HTTP load failed (error code: -1009 [1:50]) So how do I handle this error and give popup or any warning to user to check your internet connection without app crashing. Swift 4, Xcode 10.1 You can access to the error code: class ViewController1: UIViewController, URLSessionDataDelegate { ... func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: