xcode9

GoogleMobileAds (Admob) framework not detected in Xcode 9 - linker error

无人久伴 提交于 2019-12-07 22:41:09
问题 I got linker error GADInterstitial referenced from. Undifined symbols for architecture arm64 I used latest admob framework GoogleMobileAdsSdkiOS-7.24.0 See attach image. How to fix it for iOS 11 ? 回答1: Its Xcode 9 Bug. Once you add framework in Xcode side bar, it never auto adds in 'Link Binary with Libraries' section. Solution is simple. Just drag framework in Xcode Side bar to Link Binary section. See attach image. 来源: https://stackoverflow.com/questions/46338649/googlemobileads-admob

High Sierra update causes NSTableView to flip and scramble

房东的猫 提交于 2019-12-07 11:08:43
问题 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

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

我怕爱的太早我们不能终老 提交于 2019-12-07 09:13:36
问题 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. 回答1: Swift 4, Xcode 10.1 You can access to the error code: class ViewController1: UIViewController,

text field text in Xcode 9 storyboard off center (and clipping)

孤人 提交于 2019-12-07 06:47:47
问题 Please try the following in Xcode 9 storyboard: drag a new text field somewhere in a ViewController set some placeholder text set border style to none (left dotted one) set a background color I always get the text off center and clipped like this: When I run the app it looks fine vertically centered as it should. Also when you increase the height the text eventually disappears altogether. Adding a left, top and right constraint helps because it makes the text field's height match the height

Reading from Keychain Xcode 9 simulators returns nothing

雨燕双飞 提交于 2019-12-07 04:08:17
问题 Since I'm using Xcode 9, all unit tests communicating with keychain are broken. It also happens with Xcode GM. As I traced, there is no OSStatus errors while reading and writing but reading from keychain returns nothing and causes failure for all unit tests using keychain. I've already faced something like this when Apple released Xcode 8 with iOS 10 simulator which keychain was not working and Apple fixed that in Xcode 8.2. Is anybody else facing this issue with iOS 11 simulator too? Any

Xcode 9 borderColor doesn't work in User Defined Runtime Attributes

爱⌒轻易说出口 提交于 2019-12-06 15:30:58
I'm using this CALayer extension: var borderUIColor: UIColor { set { self.borderColor = newValue.cgColor } get { return UIColor(cgColor: self.borderColor!) } } I thought that maybe because of this extension my borderColor of the Submit button from the bottom of the page doesn't change to white (as I want it to be): But no, I hooked up an IBOutlet and tried to set directly the color like this: submitButton.layer.borderColor = UIColor.white.cgColor Did it in viewDidLoad , viewWillAppear and viewDidAppear because I know that in the last big update (iOS 10) the frame rendering was changed

missing required icon issue and marketing icon not found issue

让人想犯罪 __ 提交于 2019-12-06 15:14:29
I just updated Xcode from version 8.3 to 9 via appstore. I am trying to submit my new app version but I am facing app upload problem with Xcode 9. I had not got this issue before when I uploaded app using Xcode 8.3. My app is iPhone app and minimum target is iOS 9. My code is in Swift 3.2. The issue is about the missing required icon as shown below: When I upload app with Application Loader 3.0, it gives me error saying "Missing required icon file........ >=7.0" and about marketing icon 1024x1024 in .png without alpha channel and transparency. I have followed all those criteria. I have all the

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

ぐ巨炮叔叔 提交于 2019-12-06 14:29:06
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: CGFloat(planeAnchor.extent.x), height: CGFloat(planeAnchor.extent.z)) planeNode = SCNNode(geometry:

Upgraded to Xcode 9 Swift 4. Now Auto-Layout is whacked

柔情痞子 提交于 2019-12-06 14:02:26
问题 Just updated to Xcode 9 and converted my project to Swift 4 but one of my app screens with a tableview has begun to show as such: I've removed all but one stack view and just placed all my elements in that one stack view with the constraints clipped to 0,0,0,0 it should look like this: What's going on here? 回答1: This was a simple fix once I sat down and looked at it with fresh eyes. Make sure your constraints are bounding to a view instead of another item in the view. I cleared constraints

error: conditional compilation flags must be valid Swift identifiers (rather than 'DEBUG”')

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 11:35:44
I'm trying to build my project with Xcode 9 beta 6 (9M214v). Also, I'm using CocoaPods. I've converted to Swift 4 and updated my project settings, but I keep getting this error. Things I've tried so far: Clean project and build folder Deleting / re-adding pods Restart Xcode Remove Active Compilation Conditions flags Anyone has an idea how to solve this? Error message: <unknown>:0: error: conditional compilation flags must be valid Swift identifiers (rather than 'DEBUG”') Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit