On Jul 14, 2015, at 12:49 , Rick Mann <rm...@latencyzero.com> wrote:
> 
> What is my module's name, exactly, in an app target?

Go to the build settings for the target, filter on “Module Name” and you’ll see 
it.

Note that you can’t enter the module name into the build settings directly. If 
you try, it’ll tell you that you need to change the product name instead, and 
the product name defaults to the target name. You can change this if you want, 
since the product name is something that’s inside the app bundle, not visible 
to users directly.

(I’ve used this to rename framework products, where I have a Mac framework and 
an iOS framework with the same code. By renaming the corresponding framework 
product names to the same thing, I can use the same Swift “import” statement in 
app source files that are used for both platforms, and it will import the 
module for the correct platform of the framework.)



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to