Re: Unable to connect IBOutlet in Swift Xcode 7b2
Re: Unable to connect IBOutlet in Swift Xcode 7b2
- Subject: Re: Unable to connect IBOutlet in Swift Xcode 7b2
- From: Quincey Morris <email@hidden>
- Date: Tue, 14 Jul 2015 20:08:40 +0000
On Jul 14, 2015, at 12:49 , Rick Mann <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden