xcode9

Unable to run on simulator with Xcode 9.0

a 夏天 提交于 2019-12-11 05:34:30
问题 I am unable to run on simulator with XCode 9. I am getting this error. Currently I am using macOS Sierra 10.12.6 回答1: You mention you took it through airdrop. You must move the xcode.app to applications folder, then do this: sudo xattr -d com.apple.quarantine /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app You must make the gatekeeper let your xcode and simulator app to continue on using it without verifying it. 来源: https://stackoverflow.com/questions/46239122/unable-to

An error was encountered while attempting to communicate with this device

时间秒杀一切 提交于 2019-12-11 05:26:13
问题 I get this error while "Connect via network" option in new version of XCode9 and iOS11. I checked the "Connect via network" box. After few seconds XCode gives me this error: "An error was encountered while attempting to communicate with this device" Anyone facing the same issue? current configuration XCode Version 9.0 beta 5 (9M202q) iOS Beta 5 iPad Air 回答1: I found that error causes when device lost connection for a moment. it's happen when you have damaged (or very old) cable. How ironic...

Alamofire, Extra argument 'method' in call [duplicate]

↘锁芯ラ 提交于 2019-12-11 05:14:12
问题 This question already has answers here : Swift 3.0, Alamofire 4.0 Extra argument 'method' in call (5 answers) Closed 8 months ago . I have google some answers with no luck, I got this error "Extra argument 'method' in call" and is pointing at the ".get", but if i remove the "headers : headers as? [String: Any]" it works. Please help let urlParams:[String : Any] = [ "target": target, "q": textToTranslate, "key": GOOGLE_CLOUD_API_KEY, "source": source] let headers:[String : Any] = ["Content

Can't run app in iOS 11.0 simulator

我怕爱的太早我们不能终老 提交于 2019-12-11 04:51:15
问题 I can't run the application on the simulator in the new xCode 9 beta 3 (9M174d). Every time I see the error message: (Mach error -308 - (ipc / mig) server died) 回答1: Had this issue after installing XCode 9 beta 4. Tried every possible suggestion. The only thing that solved this issue for me was to reinstall Xcode command line tools: Open terminal and type the command: xcode-select --install After installation reboot the mac. 回答2: The problem is fixed after installing the latest Mac Os Sierra

Xcode 9/Swift 4 AVCaptureMetadataOutput setMetadataObjectTypes use availableMetadataObjectTypes

旧时模样 提交于 2019-12-11 04:06:25
问题 There seems to be a lot of issues similar to what I am experiencing: AVmetadata changes with swift 4 xcode 9 AVCaptureMetadataOutput setMetadataObjectTypes unsupported type found And there is an Apple bug that deals with AVFoundation: https://forums.developer.apple.com/thread/86810#259270 But none of those seem to actually be the answer for me. I have code that runs great in swift 3, but will only error out in swift 4. Using the solutions in the above links results in no change at all. Code:

Landscape view issue with navigation bar

余生颓废 提交于 2019-12-11 03:27:02
问题 Default Navigation bar height is 64.But after change it's orientation to landscape navigation bar height changed to 28.I want to set Fix navigation bar size in all orientation. 回答1: You can add orientation observer: NotificationCenter.default.addObserver(self, selector: #selector(rotated), name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil) And add rotate method: func rotated() { let height: CGFloat = 50 //whatever height you want to add to the existing height let bounds =

“Redefinition of module …” when building for simulator

假如想象 提交于 2019-12-11 02:48:25
问题 I have an iOS xcode project that builds fine when I have Generic iOS Device selected as my destination. However, when I select any of the simulator options I the build fails with many Redefinition of module 'abcde' , one error for every module defined in iOS 11.4/usr/include/module.modulemap . The duplicate definitions are coming from Simulator - iOS 11.4/usr/include/module.modulemap . I've combed through my workspace/project settings and found no reference to the simulator. All the

Text View expand or contract upon clicking see more button

旧时模样 提交于 2019-12-10 23:08:51
问题 In my tableView cell, I have a textView whose string i'm getting via JSON and updating the cell height dynamically like this func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { if indexPath.section == 0 { return 255 } return UITableViewAutomaticDimension } Here's a screenshot Now initially i want text view to show a little text and upon clicking see more button it should expand and upon expansion the button text should change to see less also if the

Find and Replace within a Selection in Xcode 9

蓝咒 提交于 2019-12-10 20:24:36
问题 I use find and replace in selection all the time. It is crucial to my workflow. It seems to be gone from Xcode 9. This was achieved by holding down the option key once the desired text was selected. The option key would change the context of the replace button to replace in selection . This no longer seems to be available. Is the ability to find and replace within a selection truly gone from Xcode 9? If not, how do I use it? Edit: for what it's worth I posted a bug report here. Edit 2: Here

Is it possible to upload to App Store using Xcode 9 GM?

≯℡__Kan透↙ 提交于 2019-12-10 19:27:55
问题 I just prepared an app which is compatible with iOS 11. When I export through Xcode 9 GM I'm not getting any issue. same thing I'm exporting through Xcode 8.3.3 getting alignment issue on one page. Can we upload an application through Xcode 9 GM or shall we need to wait until an official update for Xcode 9 in Mac Appstore? Thanks in advance. 回答1: Yes developer can upload binary through GM(Golden Master) Xcode build actually this is a pre release of final Xcode build it can be used to build &