xcode9

Xcode 9 Storyboards are not displaying properly

杀马特。学长 韩版系。学妹 提交于 2020-01-12 04:50:16
问题 On Xcode 9, all my storyboards seem to be displaying in blue outlines only. Doesn't seem to be a new feature....Anyone has the same issue? 回答1: After a week of trying all the suggestions in the internet I found that Xcode 9 required some libraries in macOS High Sierra. So install them and then it will work: https://www.apple.com/lae/macos/high-sierra/ Hopefully it will help someone 回答2: I has this issue in two different storyboards, where I can see an error on the top which said: "An internal

Reduce the size of the iPhone Simulator window? [duplicate]

主宰稳场 提交于 2020-01-11 18:54:13
问题 This question already has answers here : How to resize the iPhone/iPad Simulator? (11 answers) Closed 2 years ago . Is it possible to resize the iPhone Simulator? I'm using screen capture software to record a demo of my iPhone application, and it would be handy to be able to resize the iPhone Simulator window. Thanks! 回答1: You should try cmd 2 or cmd 3 on your keyboard to scale down. And cmd 1 to get back to the original scale. 回答2: Unfortunately no, it must maintain that size. We had the

“Connect via network” wireless debugging not working Xcode 9

ⅰ亾dé卋堺 提交于 2020-01-11 17:42:29
问题 I am trying to run my iOS app via wifi network. But its not working as I expected. Connected Network sign is not displaying . I am using: macOS Sierra - 10.12.6 (in Mac mini) Xcode - 9.0 (9A235) iOS - 11.0 NOTE: Mac mini and iPhone both are connected to same wifi network . Already tried : Change another network Restart iPhone and Mac mini twice. Unpair Device and again pair device. Am I missing something? 回答1: I was having the same issue and performed the following steps to get things working

“Connect via network” wireless debugging not working Xcode 9

对着背影说爱祢 提交于 2020-01-11 17:41:43
问题 I am trying to run my iOS app via wifi network. But its not working as I expected. Connected Network sign is not displaying . I am using: macOS Sierra - 10.12.6 (in Mac mini) Xcode - 9.0 (9A235) iOS - 11.0 NOTE: Mac mini and iPhone both are connected to same wifi network . Already tried : Change another network Restart iPhone and Mac mini twice. Unpair Device and again pair device. Am I missing something? 回答1: I was having the same issue and performed the following steps to get things working

Swift 4 attributedString get typing attributes

本秂侑毒 提交于 2020-01-11 02:09:46
问题 I am trying to create AttributedString and add the attributes from typingAttributes(from textView) The problem is that .typingAttributes return [String, Any] and NSAttributedString(string:.. , attributes:[]) needs [NSAttributedStringKey: Any] My code: NSAttributedString(string: "test123", attributes: self.textView.typingAttributes) I don't want to create for in cycle to go through all keys and change them to NSAttributedStringKey 回答1: You can map the [String: Any] dictionary to a

Xcode 9: Provisioning profile is Xcode managed, but signing settings require a manually managed profile

淺唱寂寞╮ 提交于 2020-01-10 08:08:08
问题 I need to archive my app for submission to iTunes Connect. It was OK with Xcode 8.3.3: It's NOT OK with Xcode 9.0: When archiving, I get: Code Signing Error: Provisioning profile "XC iOS: *" is Xcode managed, but signing settings require a manually managed profile. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0' The two screenshots are taken from the same computer, same workspace. I can't use "Automatic" because it would change the provisioning

Xcode 9 only - How to resolve the [-Wundefined-var-template] warning caused by static variable in a class template?

删除回忆录丶 提交于 2020-01-07 04:53:10
问题 The sample code compiles without warning or error on Windows and Linux. It starts to get the -Wundefined-var-template warning in XCode 9. foo.h: template <typename T> struct myClass { static const char* name; }; foo.cpp: #include "foo.h" template<> const char *myClass<int>::name = "int"; warning: instantiation of variable 'myClass<int>::name' required here, but no definition is available [-Wundefined-var-template] note: forward declaration of template entity is here static const char *name; ^

I am getting EXC_BAD_ACCESS (code=1, address=0x30) Bad Access even when object exists - swift 4

风流意气都作罢 提交于 2020-01-06 07:26:14
问题 Similar to This SO Post and This SO Post I initialize a variable ----> idHERE: static func createPractitionerRole(fromRoleDict roleDict:[String: AnyObject])->PractitionerRole?{ guard let (nameL, idL) = getRoleNameId(fromRoleDict:roleDict) else { return nil } let roleTypeL = ProTouchRoleType.determineRoleTypeFromProTouchId(idL) var idHERE = Identifier(withValue: idL, systemParam:Constants.CodeSystem.ProTouch.coding_system_proTouchURL) print("idHERE \(String(describing: idHERE))") print("idHERE

IOS Targets for each client

浪子不回头ぞ 提交于 2020-01-06 02:46:08
问题 A little background: In android we have developed the same app, basically we have developed the Android app first now we have created its IOS version, so there are multiple clients of this app. In android we are really handling this situation using Android modules system. Now in IOS we have to do same thing. And that is to make the samecode base to be use in for multiple clients. I did research and found the Targets and framework are the best option. I created the workspace added the

Issue when uploading binary to iTunes Connect with Xcode 9 on High Sierra (ERROR ITMS-90391)

懵懂的女人 提交于 2020-01-05 05:59:13
问题 When trying to upload a binary to iTunes connect using XCode 9 (or Application Loader) on High Sierra, I'm getting the following error: ERROR ITMS-90391: "Missing Icons. No icons found for watch application ‘AppName/Watch/WatchApp.app'. Make sure that its Info.plist file includes entries for CFBundleIconFiles." May I note here that the exact same binary was uploaded yesterday, using XCode 9GM on Sierra with no problems. Things I've already verified/tried: Cleaned project, deleted DerivedData