Search results for

dsym file

75,481 results found

Post

Replies

Boosts

Views

Activity

Reply to Loading an .Obj model file
when I ran your code I saw the actual problem 🙂when creating the URL I needed to specifically create a file URL.//var torusModel = MDLAsset(URL: NSURL(string: path!)!) let torusModel = MDLAsset(URL: NSURL.fileURLWithPath(path!))Loaded just fine after that
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jun ’15
Swift frameworks and unmapped SDK libraries?
Over the course of Swift's existence I've had to take advantage of a number of workarounds (i.e., hacks) to compile a Swift framework that utilizes non-modular system code, e.g., CommonCrypto, sqlite3, etc.These solutions have included:Renaming the umbrella header to be something different than the module name in order to exploit a bug that let frameworks compile with bridging headers, wherein the non-modular import happened: #import <CommonCrypto/CommonCrypto.h>Building a dummy, optional framework with a custom module map specifying the absolute path to an SDK header (relative SDK paths don't work): module CommonCrypto [system] [extern_c] { header /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h export * }Specifying a custom module map with an additional header specifying the absolute path to an SDK header: framework module MyCrypto { umbrella header MyCrypto.h header /Applications/Xcode.app/Contents/Developer/Pla
7
0
9.7k
Jun ’15
Reply to Invalid conversion with do-try-catch in a block
Adding a catch-all catch will let things compile:moc.performBlock { do { try moc.save() print(Success) } catch let error as NSError { print(Fail: (error.localizedDescription)) } catch { print(Fail: (error)) } }If you're not using the NSError, you may as well use just a single, generic catch.If you don't catch all possible errors, the throws propagates to the caller, in this case, performBlock. However, performBlock doesn't expect an error, so you must catch all possible errors, or you must call try!, unsafely, instead.The error isn't super friendly, so it may be worth filing a bug report to make it easier to understand.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Revert to Saved error messages
I am working on an App where after the user completes the Revert to Saved… time machine like dialog the system sends a bunch of error messages to the XCode console:Jun 9 20:16:52 BDM-2.local Mandelbrot[36183] <Error>: CGContextClipToRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.Jun 9 20:16:52 BDM-2.local Mandelbrot[36183] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update....None of these graphics commands are part of my code. The document w
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
246
Jun ’15
Reply to Can't boot into recovery
I always make a USB thumb drive and keep it handy. I have 10.7 up too 10.11 just in case.Download the 10.11 beta if you don't already have it and open the terminal and copy/paste the following (Either name your USB Thumb drive Untitled to match the line below or change the name to match your USB thumb drive):sudo /Applications/OS X 10.11 Developer Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/OS X 10.11 Developer Beta.app --nointeractionAfter its created then hold option key down on startup and choose the thumb drive to boot from. Choose disk utillity to format the drive and then do a fresh install of OS X. (If you format make sure you have your files backed up.)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to san francisco
There appears to be some strange internal doublethink going on with the bundled version of San Francisco.Indeed, like all core fonts, it's located in /System/Library/Fonts, and it occupies a handful of files prefixed SFNS. But it doesn't show up anywhere in Font Book, as far as I could see. And if you go to re-install it (File: Add Fonts and select those files), it will happily copy the files out of the system folder into ~/Library/Fonts——but will still absolutely refuse to show it in the font list!Whatever the reasoning behind this, it's totally creeping me out.(note that the same font—the same files, AFAICT—can be downloaded from Apple directly, but have the prefix SanFrancisco instead of SFNS.)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to san francisco
OK, I downloaded the official Watch package, including the public-facing font files, and they behave—interestingly, as well.Opening those font files from the Finder should (and does, in Yosemite) open a font preview window in Font Book. In 10.11, the SanFrancisco* files behave the same as the SFNS* ones in this case: Font Book completely ignores them. And again, going to File: Add Fonts allows you to select the files, and they do get copied into the right directory. The only difference is that they then become visible to applications, including Font Book, TextEdit, etc.My best guess is that SFNS* are tagged the same way LastResort.ttf is, to be internally available and displayable, but otherwise unavailable to the user.For something as critical as the standard interface font, this seems extremely cowardly and proprietary, and moreover totally a useless distinction.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to almost afraid to ask on new background modes.
You absolutely have to file enhancement requests and bug reports making your case for the features that you want that iOS doesn't yet support. You probably won't get any direct feedback unless there's difficulty understanding something in your report, but it's still necessary.On the other hand, it's important to remember that Apple applications have both a longer leash (Apple makes the rules) and a shorter leash (Apple's going to be more conservative about most things). The complication with doing a specific task that lasts less than 10 seconds at a specific date and time in the future is one of managing when a dozen different applications all want to do something at the same time. Who goes first? How much time do the have? How does the user tell what's going on? If the foreground application is hogging resources, do you launch late? What happens when you crash in the background?
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15