xcode9

How to use auto layout in a UINavigationBar custom titleView

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:00:25
问题 In WWDC 2017 presentation 204 they say that you can use autolayout in the custom titleView. It happens around 7:53 They never show an example of how to do this. When I try, I get a zero sized view. In interface builder I create a UIView and add a UISearchBar and a UIButton as subsides kind of like this [seachBar]-[Button] It becomes zero width. Does anyone know how to use this new feature? 回答1: I'll be answering my own question. Essentially, auto layout works like you would expect. However,

Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1

ぃ、小莉子 提交于 2019-12-10 14:45:52
问题 /Users/Alex/Library/Developer/Xcode/DerivedData/MyProject-ehabmnclpzlywhabrefntacibonm/Build/Intermediates.noindex/ArchiveIntermediates/Fuego/InstallationBuildProductsLocation/Applications//MyProject.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1 I got this issue when I Archive my project. When I run app on simulator it works ok without such issue above. Also it works ok with Xcode 8 , but now when I try to Archive it on Xcode 9 I

Interface Builder XIB compiler error on Xcode 8

别说谁变了你拦得住时间么 提交于 2019-12-10 13:38:48
问题 After switching to Xcode 9 then back to Xcode 8, my build is failing and I'm getting this error. I'm not getting any error on Xcode 9 though. Note: I've already checked :Solution and Solution, however it's not working. Why am I getting this error? BasketTotalView.xib: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/dg/_yf1yfd15svdj48mrrlws5vw0000gp/T/IB-agent-diagnostics_2017-08-18_10-08-35_271000". 回答1: Click on your .XIB file From Right side bar select

Xcode 10 storyboard UI components are not visible and painfully slow?

心不动则不痛 提交于 2019-12-10 12:47:14
问题 My code was working fine (showing UI properly) when I had Xcode 9 and I removed it from the application folder (could not update as it had installed using another apple id) and reinstall the Xcode 10 from the Appstore. Now Xcode storyboard not showing any added UI elements colors or anything and I removed Xcode 10 and installed Xcode 9 again but problem remains same. UI screen shot of storyboard. I tried removing Xcode in this way: /Applications/Xcode.app /Library/Preferences/com.apple.dt

ARKIT : place object on a plane doesn't work properly

这一生的挚爱 提交于 2019-12-10 11:07:52
问题 I am learning ARKit and trying to place an object on a detected plane. But it doesn't work properly and there's a space between the plane and the 3D object. here's my code for the plane detection : func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { position = SCNVector3Make(anchor.transform.columns.3.x, anchor.transform.columns.3.y, anchor.transform.columns.3.z) guard let planeAnchor = anchor as? ARPlaneAnchor else { return } let plane = SCNPlane(width:

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

我的梦境 提交于 2019-12-10 09:28:51
问题 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

Vapor doesn't work with xcode 9 and swift 4

别等时光非礼了梦想. 提交于 2019-12-09 14:09:09
问题 When I try to compiled my newly created vapor project with Xcode 9 I get 189 compile errors. What's the trick to making this work? I installed vapor and the toolbox, and create via 'vapor new test --template=api' and then 'vapor xcode' to start it up. 回答1: Check that everything is up to date. The following builds and runs for me at this time: Use latest vapor toolbox. Currently: vapor new test --template=api cd test swift package tools-version # 4.0.0 # use `swift package tools-version --set

Xcode 9 code completion and highlighting not working

心不动则不痛 提交于 2019-12-09 07:46:15
问题 I have seen many threads about this online, but not for Xcode 9 . For some reason code completion and syntax highlighting is no longer working. Last week it was fine. Using the GM build. Anyone have this issue or know how to resolve it? A restart of Xcode and my computer did not help. 回答1: In Finder I navigated to user->Library->Developer->Xcode->DerivedData and deleted the subfolder of the project in question. After next build of the project the syntax highlighting and code completion

iOS 11/Xcode 9: UITableViewCell white background flickers on delete

筅森魡賤 提交于 2019-12-09 05:20:17
问题 On iOS 11 device on deleting a UITableViewCell unexpected white background appears for some reason however all background colors are set to blue in storyboard (works fine on iOS10). - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [self.bookmarks removeObjectAtIndex:indexPath.row]; [self.tableView deleteRowsAtIndexPaths:@[indexPath]

Testing ARKit without iPhone6s or newer

狂风中的少年 提交于 2019-12-08 17:44:51
问题 I am before decision to download Xcode9. I want to play with new framework - ARKit. I know that to run app with ARKit I need a device with A9 chip or newer. Unfortunately I have an older one. My question is to people who already downloaded the new Xcode. There is a possibility to run ARKit app in my case? Any simulator for that or something else? Any ideas or will I have to buy new device? 回答1: ARKit is available on any iOS 11 device, but the world tracking features that enable high-quality