Post

Replies

Boosts

Views

Activity

Error initializing MLMediaLibrary instance
In an application I'm developing, I followed these directions on Stack Overflow to initialize a new instance of MLMediaLibrary. Rather than get back a properly-formed instance, I get the following logged to the console:__38-[MLMediaLibraryImpl connectToService]_block_invoke connection interruptedMLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "Couldn't communicate with a helper application." (connection to service named com.apple.MediaLibraryService) UserInfo=0x60000026a140 {NSDebugDescription=connection to service named com.apple.MediaLibraryService}So I made a new test application, copied the code from the application I'm developing and pasted it into the test application. Surprise of surprises, it works fine.I've checked the build settings, etc, to make sure the two are the same and can't figure out why the new application works, but the other doesn't. (Of note: The old application was originally an Xcode 3.2.6 project that has been upgraded numerous times.) Both applications are using ARC.
2
0
1.4k
Jul ’15
filePromiseProvider and writing to /private/var
I have an application that needs to use filePromiseProvider for drag-and-drop operations to other applications.The problem I'm having is that the receiving applicaion (in this case, Pages) provides a desired destination in /private/var:[MSWUtility64 filePromiseProvider:writePromiseToURL:completionHandler:] path:/private/var/folders/yg/gqmcypgs1p9dpyxsllkxt9zc0000gn/T/com.apple.iWork.Pages/com.apple.iWork.Pages_22418__607536614_6/IMG_0067.jpgObviously, this is a sandboxed location. What entitlements need to be set to allow this?
2
0
402
Apr ’20