I'm having trouble finding working examples of using the xpc.h (c lib) API. There are a number of examples showing NSXPC but I'm trying to use the xpc.h interface.I have a CUPS backend (Unix command line) program that needs to open a url in the user's browser. This is no longer allowed within a CUPS backed starting with Yosemite, so DTS advised that I look into building a Launch Agent (also Unix command line) which can open the url and then have the CUPS backend contact it via XPC.I tried using the following but it seg faults.https://eminisnp500.wordpress.com/2012/01/31/using-mac-os-xpc-service-with-launchd/Also, since launchd needs to run my XPC server, how does one go about debugging this? I didn't think I could start my XPC server from xcode because only launchd could bind the Mach service. Is there a preferred way to build/debug a LaunchAgent that hosts an XPC Mach service?Finally, do these programs need to be signed with my Developer ID (can you even sign command line programs)?ThanksWilliam
Search results for
Xcode
92,312 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Found this bit alsodyld: Symbol not found: _OBJC_CLASS_$_SCNAudioPlayer Referenced from: /Users/steve/Library/Developer/Xcode/DerivedData/Fox-bxsdkygmgcpzeleygbjwxmdxlwaq/Build/Products/Debug/Fox.app/Contents/MacOS/Fox Expected in: /System/Library/Frameworks/SceneKit.framework/Versions/A/SceneKitin /Users/steve/Library/Developer/Xcode/DerivedData/Fox-bxsdkygmgcpzeleygbjwxmdxlwaq/Build/Products/Debug/Fox.app/Contents/MacOS/Fox
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
This is actually ridiculously easy to reproduce using Apple's template code for CoreData, with only a few lines of modification. I posted sample code on GitHub. If you build an run it, it will create 1000 empty sql stores. It builds and runs fine from within Xcode. Now go 'Archive' the application, then run it. Now it'll fail to load. You'll see the errors pile up in the console.This is a bug, right? Anybody see a way around this (short of using one store)?
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
i am developing a webbrowser in xcode, you know that your bar on the top of safari, how do i make my own webrowser work with out typing in http:?
Hello Everyone!This feels really stupid, but I'm really stuck... Is there any documentation for the new Xcode 7 UI Testing? I really can't find it.Thanks!
I can get code coverage results inside of xcode with a new toy project. When I try with an existing app with tests, the tests are run (I see output, breakpoints hit), but the coverage window in the report navigator says No Coverage Data and nothing shows in the source editor sidebars. The Gather Coverage Data box is ticked in the scheme.
This is a follow up to the thread, Troubleshooting the launch of local user XPC Launch Agent, in the original (and now archived) Dev Forums.Based on further tests, I assume there must be some configuration that I'm not setting up correctly, as opposed to the code.I started from scratch again with a fresh Xcode Project. This time, I based the code mostly on the example code posted by Apple Engineer eskimo1 in this thread (which uses an privileged Launch Daemon) with a modification or two based on the code posted by Apple Engineer dsorresso in this thread. As I assume that their code can be expected to work (i.e.- to help rule out a coding error on my part). Except that I modified the code so that it works with/as an XPC Service Launch Agent without the privileged aspect and which resides inside of the user's home directory.The following was all done on OS X 10.10.3 (14D136) Yosemite and built with Xcode 6.3.2 (6D2105).* I first st
I'm working on action extension for OS X that edits single image.Everything works well in TextEdit.app. But image changes has no affect in Mail.app. I'm using this code to return edited image back to host app:- (IBAction)done:(id)sender { NSExtensionItem *outputItem = [[NSExtensionItem alloc] init]; outputItem.attachments = @[self.imageView.image]; NSArray *outputItems = @[outputItem]; [self.extensionContext completeRequestReturningItems:outputItems completionHandler:nil]; }In extension and in Xcode I can see that image is changing. But after [self.extensionContext completeRequestReturningItems:outputItems completionHandler:nil] nothing happens in Mail.app.Here's project:https://github.com/derpoliuk/TestExtensionApp/I created bug report: rdar://21358060I saw that other apps are editing photo in Mail.app (for example Pixelmator - http://www.idownloadblog.com/2015/04/21/pixelmator-repair-tool-extension-mac/). So there's should be something that I'm doing wrong.Any help would be really
It is always OK to install multiple versions of Xcode side-by-side provided you're on a version of OS X that supports both
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Only what I've seen in the https://developer.apple.com/xcode7-beta-release-notesUI TestingUser interface testing and recording. Test applications at the user interface surface with elements, queries, and simulated events. The UI recording feature enables capture of UI actions into source to facilitate creating tests.Xcode 7 introduces UI testing as a major new feature of the existing XCTest framework. UI testing is implemented as an extension to the existing APIs and concepts in XCTest, making it easy to adopt for developers who have familiarity with Xcode’s testing features. (10975541)Code coverage does not work with UI testing.UI testing cannot identify elements using information from their accessibility title element. (20409319) Workaround: Set an accessibility identifier instead.UI testing may fail to find elements with names containing decomposable Unicode characters. (20804391)Workaround: Use NSPredicate to explicitly match against key paths including precomposedStringWithCanonicalMapp
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Thanks! I know they show the beta versions in Xcode -- had no idea they might choose to not do this in Server.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Please file a bug and attach any crash reports or spin reports for Xcode. We think this is a known issue but I want to be sure!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I just migrated an app to use Swift 2 in Xcode 7, and after cleaning up all the changes and fixing errors missed, I can't get past an error:Command failed due to signal: Illegal instruction: 4Has anyone else experienced this? I have cleaned the build, removed Derived Data folder, and ensured I'm on latest version of CocoaPods with latest versions of pods (SVProgressHUD, KSReachability, Lockbox, SMPageControl).Please help, thank you!-BJ
Hi Collin,For iOS, this should *just work*. When you are producing your library, the compiler and linker will include the bitcode in the Mach-O file. There are only two things that you should know.1. If you are not using Xcode, please manually add -femit-bitcode command line option.2. When using Xcode, bitcode is only produced during archive build, not debug or release build.Evan
Topic:
Developer Tools & Services
SubTopic:
General
Tags:
I'm very interested in the answer for this as well. Actually, I had just posted a similar question earlier today but now it's gone.I thought the XPC Service template within xcode was only for XPC Services hosted within a parent application - produces .xpc files. I'm pretty sure those don't work as standalone XPC services like you describe above. Wish I had more to add. Please share any progress you make on this.
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: