> On 4 Feb 2015, at 10:12, Rick Mann <[email protected]> wrote: > > Additional info: > > I seem to be able to add .proto files to my project's App target, but not to > one of the static library targets. However, it's the static library target > that has the *.proto build rule. > ----- > I'm using Google protobufs in my project. Xcode 6.1.1. Up until now, we've > had a manual step that invokes the protoc compiler, and generates files. It's > manual because it always runs, touching the output files, and forcing a huge > rebuild of the project. > > I'm trying to use a build rule matching *.proto, but it's not being invoked. > > The .proto files in my project don't belong to any target, and I can't seem > to add them, because the target membership control is disabled. What do I > need to do to be able to add them? > > The docs, of course, are useless. >
Build Phases -> Compile Sources -> (+) -> add your file there for each target you want it built for. It will then show in Target Membership ticked although possibly still disabled so you can’t un-tick it and if you want to remove it again you go to Compile Sources and remove it there. No I don’t know why. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
