-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically copy XPC Services to correct location #368
Automatically copy XPC Services to correct location #368
Conversation
@vgorloff Let me know if this resolves your issue. |
Thank you! Will check it today evening or on weekend. |
@@ -40,6 +40,11 @@ public struct TargetSource: Equatable { | |||
case carbonResources | |||
|
|||
public struct CopyFilesSettings: Equatable, Hashable { | |||
public static let xpcServices = CopyFilesSettings( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this. We could add a similar static modulemap
property.
Could we move it into XcodeGenKit
as an extension though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main reason I did this one here, is that it shows up in the dropdown for a destination in Xcode, and if you these exact settings Xcode will render it as such.
The modulemap
based one is more a convention, and that I would put into an extension in XcodeGenKit
.
Local build from
|
Glad to hear @vgorloff. Hopefully this can make the next release 😄. |
@@ -26,6 +26,8 @@ | |||
BF_130062884703 /* Alamofire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FR_257516580010 /* Alamofire.framework */; }; | |||
BF_138356261076 /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FR_363921640403 /* InterfaceController.swift */; }; | |||
BF_144945303317 /* Alamofire.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FR_410645050443 /* Alamofire.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |||
BF_156251722120 /* Alamofire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FR_257516580010 /* Alamofire.framework */; }; | |||
"BF_156251722120-1" /* Alamofire.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FR_257516580010 /* Alamofire.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a similar issue to that in #373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#373 will fix it.
e783e25
to
341e021
Compare
@yonaskolb Good for another look. |
@yonaskolb We have a lot of good changes in master. Think we can get a new release? |
@brentleyjones and @vgorloffdid do you know the answer to the question above? Question is should header files in an xpc target generate build files and be added to a build phase? |
Seems it is about ObjC version of XPC Target. I will make a sample XPC ObjC project first and will look on it’s structure. |
Sorry, I don't know. Thanks @vgorloff for looking into this. |
This is project specs I have for creating ObjC version of XPC Service (XcodeGen version 1.11.2):
|
There could be one or more header files shared between Service and Client.app (like file |
I ended up just removing build files that didn't belong to any build phases 590128e |
Fixes #334.