xcode9

Expected method to read array element not found on object of type 'id<ProtocolName>'

不羁的心 提交于 2020-01-16 07:49:07
问题 I want to update XCode version. But while updating I receive several compiler errors. The are the same as this: id<MyProtocol> objectToDelete = group[index.unsignedIntegerValue]; Expected method to read array element not found on object of type 'id' id<MyProtocol> _Nonnull group @protocol MyProtocol <NSObject> @property (copy, nonatomic) NSString* name; @property (copy, nonatomic) NSString* id; @property (copy, nonatomic) NSString* internalType; @property (strong, nonatomic) NSMutableArray<id

Xcode 9 simulator doesn't save userdefaults

瘦欲@ 提交于 2020-01-15 08:05:08
问题 Maybe it's the same issue as this one. But few of the solutions that I have tried don't work. The simulator don't save userdefaults on Xcode Version 9.0 beta 6 (9M214v). I had Xcode 8 as well (together with 9) but removed it. the code that I'm using: UserDefaults.standard.setValue("1234567", forKey: "phone") if let phone = UserDefaults.standard.value(forKey: "phone") as? String{ //some code here } Additionally I have tried: UserDefaults.standard.set("1234567", forKey: "phone") if let phone =

Carthage, Xcode 9. “xcodebuild timed out while trying to read *.xcodeproj” error

时光总嘲笑我的痴心妄想 提交于 2020-01-15 03:15:14
问题 Today I downloaded xCode 9 and started converting everything to Swift 3.2/4, so I can build and run my project. As it was expected carthage complaint about some project that they could not be build, as they were not compatible with Swift 3.2/4. I had to find the versions that were compatible and build them. I also had to use --no-use-binaries, as some frameworks are precompiled with previous versions of Swift. I then got the following error: xcodebuild timeout while trying to read AWSiOSSDKv2

Disable Safe Area Layout Guides For UIView Programmatically

◇◆丶佛笑我妖孽 提交于 2020-01-14 08:48:06
问题 Safe area layout guides can be disabled in Interface Builder by unchecking the Use Safe Area Layout Guides . How can this be done in code? I didn't notice an iOS11-available boolean that directly corresponds with the checkbox. 回答1: I think the only way to accomplish this programmatically is to override the safeAreaLayoutGuide property. override var safeAreaLayoutGuide: UILayoutGuide { return UILayoutGuide() } When you disable it through IB it still returns a UILayoutGuide but with zero

Xcode 9 iOS Simulator - Unable To Obtain Valid Process Handle

杀马特。学长 韩版系。学妹 提交于 2020-01-13 06:58:48
问题 I have upgraded to Xcode 9, and the iOS Simulator for 10.3 and 11 are not working. All stock and my apps are force closing when trying to run. Xcode Console errors like the following show when I try to run Calendar, Preferences etc. What does the "Unable to obtain valid process handle" mean? Process handle (com.apple.Preferences, <BSProcessHandle: 0x7fe84552b8b0; Preferences:9270; valid: NO>) is invalid. Returning error { BKSProcessExitReason = 0; BKSProcessJobLabel = "UIKitApplication:com

Xcode 9 iOS Simulator - Unable To Obtain Valid Process Handle

自古美人都是妖i 提交于 2020-01-13 06:58:13
问题 I have upgraded to Xcode 9, and the iOS Simulator for 10.3 and 11 are not working. All stock and my apps are force closing when trying to run. Xcode Console errors like the following show when I try to run Calendar, Preferences etc. What does the "Unable to obtain valid process handle" mean? Process handle (com.apple.Preferences, <BSProcessHandle: 0x7fe84552b8b0; Preferences:9270; valid: NO>) is invalid. Returning error { BKSProcessExitReason = 0; BKSProcessJobLabel = "UIKitApplication:com

XCode 9 unknown error -1 = fffffffffff command/bin/sh failed with exit code 1

我是研究僧i 提交于 2020-01-13 05:18:08
问题 I have been trying to test my app on a real device and I keep getting this error. I have tried changing my project to this selected answer already XCode 9.1 Command /bin/sh failed with exit code 1 , but it did not work and I have also deleted my derived data already. I hope someone can help me! Thanks!! 回答1: If you search around there are a lot of solutions presented to solve this problem. But a few them are outdated or very specific to a certain domain. Recently I ran into the same issue

iPhone doesn’t support any of app’s architectures. You can add arm64e architecture to app's Architectures build setting

╄→гoц情女王★ 提交于 2020-01-12 19:25:13
问题 I’m on Xcode 9. I just got my iPhone XS Max. I tried to install my app onto it. I kept getting iPhone doesn’t support any of app’s architectures. You can add iPhone’s arm64e architecture to app’s Architectures build setting. Build Settings How can I prevent this error? 回答1: It's not because of iOS 12 - note the error message. This is the ARM64e architecture, which is used on the A12 and later. ARM64e compiles into ARMv8.3 instructions, which enable Pointer Authentication Codes. This means

Error Disk I/O in Quick Help Inspector Xcode9

跟風遠走 提交于 2020-01-12 15:08:42
问题 I have been using Xcode recently when I noticed that the Quick Help tab wasn't showing what is used to show, it was just displaying Error Domain=com.apple.DNTDocumentationSupport Code=0 "disk I/O error" UserInfo= {NSLocalizedDescription=disk I/O error} I looked up how to fix it, but I got no results. Does anyone know how to fix this? 回答1: I've been facing this issue the past hour or so and the only fix I've found is to restart Xcode. Will report back if it comes back. 来源: https:/

Error Disk I/O in Quick Help Inspector Xcode9

时光怂恿深爱的人放手 提交于 2020-01-12 15:03:26
问题 I have been using Xcode recently when I noticed that the Quick Help tab wasn't showing what is used to show, it was just displaying Error Domain=com.apple.DNTDocumentationSupport Code=0 "disk I/O error" UserInfo= {NSLocalizedDescription=disk I/O error} I looked up how to fix it, but I got no results. Does anyone know how to fix this? 回答1: I've been facing this issue the past hour or so and the only fix I've found is to restart Xcode. Will report back if it comes back. 来源: https:/