xcode9

Could not load the image referenced from a nib in the bundle with identifier

扶醉桌前 提交于 2019-12-20 00:55:48
问题 Copy items if needed -> Done Case sensitiveness -> Taken care Image is inside the project folder. What can be the problem here? Xcode version 9.0 回答1: I had the same error , Click on a picture file in Xcode. in attribute, on bottom you'll see Target membership. Check the box and it is gonna work. it worked for me . try it once . 回答2: I solved it by importing the image into assets (Assets.xcassets) and referencing it from there. Looks like the build process in Xcode 9 no longer copies the

Could not load the image referenced from a nib in the bundle with identifier

隐身守侯 提交于 2019-12-20 00:54:51
问题 Copy items if needed -> Done Case sensitiveness -> Taken care Image is inside the project folder. What can be the problem here? Xcode version 9.0 回答1: I had the same error , Click on a picture file in Xcode. in attribute, on bottom you'll see Target membership. Check the box and it is gonna work. it worked for me . try it once . 回答2: I solved it by importing the image into assets (Assets.xcassets) and referencing it from there. Looks like the build process in Xcode 9 no longer copies the

How can I show C++ code documentation in Xcode 9.3?

筅森魡賤 提交于 2019-12-19 06:33:02
问题 I´m developing software based on C++ in Xcode and want to have (at least) the same convenience for code documentation as if I was developing for Swift or objc. Example: std::string myString("hello"); if (myString.empty()) { // do something } If I want to know exactly what .empty() does, I would like to Option-Click on the function and get the documentation overlay with information from e.g. http://en.cppreference.com/w/cpp/string/basic_string/empty, exactly as it does for objc and Swift. How

How can I show C++ code documentation in Xcode 9.3?

天涯浪子 提交于 2019-12-19 06:32:07
问题 I´m developing software based on C++ in Xcode and want to have (at least) the same convenience for code documentation as if I was developing for Swift or objc. Example: std::string myString("hello"); if (myString.empty()) { // do something } If I want to know exactly what .empty() does, I would like to Option-Click on the function and get the documentation overlay with information from e.g. http://en.cppreference.com/w/cpp/string/basic_string/empty, exactly as it does for objc and Swift. How

iOS 11 NSPredicate search on Swift array crashing - NSUnknownKeyException

隐身守侯 提交于 2019-12-19 02:54:11
问题 I am using NSPredicate to filter an array in Swift. The problem is after updating to iOS 11 (Xcode 9 /w Swift 4), I keep getting a crash on the filter line. Here is the crash log: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: >'[ valueForUndefinedKey:]: this class is not key >value coding-compliant for the key name.' Here is an example of the class that I have an array of: final class Model: NSObject { let name: String init(name: String) { self.name = name } }

Xcode 9 Storyboard: an internal error occurred. editing functionality may be limited

烂漫一生 提交于 2019-12-18 18:42:20
问题 When I am opening my project in Xcode 9, getting above error for Storyboard and Launchscreen. Note: Cleaning derived data didn't help me. Please have a look at the screenshot. 回答1: You can find the issue in Problem Report, just clink on report a bug and open the log.txt file where you can find the issue. In my case i set invalid table row height. 回答2: Trash derived data by two ways either by command or Preferences. rm -rf ~/Library/Developer/Xcode/DerivedData/ or Xcode -> Preferences ->

iPhone X full screen issue [duplicate]

本秂侑毒 提交于 2019-12-18 15:16:10
问题 This question already has answers here : Seeing black bars at the top and bottom of the iPhone X Simulator (9 answers) Closed 2 years ago . Today I've installed Xcode 9 and build my app for iPhone x . but the upper and bottom area showing black like the scenarios we met couple of years ago for iPhone 5 when screen switched to 3.5 to 4. How simply we can fix this problem? 回答1: You should use a safe area . For apps with custom layouts, supporting iPhone X should also be relatively easy,

How to line break long large title in iOS 11?

淺唱寂寞╮ 提交于 2019-12-18 13:31:15
问题 I am trying to use the new large title system in iOS 11 using Swift. When the title gets too long (see image example), it adds ... instead of line breaking or shrinking the text size. How can I add a line break? Here is some of the code I'm using to set up the title: self.navigationController?.navigationBar.prefersLargeTitles = true self.navigationController?.navigationBar.largeTitleTextAttributes = [NSForegroundColorAttributeName: MyGlobalVariable.themeMainColor] self.navigationController?

Xcode 9 Crashing while setting a Texture in SKScene in Spritekit

醉酒当歌 提交于 2019-12-18 12:22:42
问题 I am building a game in Spritekit with Xcode currently. After updating to Xcode 9 I've found that every time I set a texture through the .sks file, Xcode crashes instantly. I've restarted my computer, updated the app, reloaded the textures and nothing changed. I have the 2017 Macbook Prof 13" w/ touch bar. Here are the diagnostics: Process: Xcode [577] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 9.0.1 (13249) Build Info: IDEFrameworks

How to set unsafe area background color for ios 11

末鹿安然 提交于 2019-12-18 11:28:19
问题 Creating some new view controllers with xcode 9 so now I have a few safe areas to deal with. I am currently trying to do something fullproof, meaning keeping the unsafe area as it is (since I always display the status bar) and having the background color extending to the fullscreen (to keep a similar behaviour to what I used to have). On an additional note, this also affect page controls since when you have some the system will put them in the bottom unsafe area which will also be displayed