Re: Datatypes still not recognized after adding bridging header...
Re: Datatypes still not recognized after adding bridging header...
- Subject: Re: Datatypes still not recognized after adding bridging header...
- From: Fritz Anderson <email@hidden>
- Date: Fri, 20 Feb 2015 10:27:17 -0600
On 19 Feb 2015, at 9:59 PM, Peters, Brandon <email@hidden> wrote:
> I added a bridging header so that I could use the FMDB Objective-C code in Swift. However, the compiler still says it cannot recognize the datatype. Under Swift Compiler -> Code Generation I added the bridging header there. Is there something else I am missing? I am running Xcode 6.3 beta on 10.10.2.
Are you compiling FMDB as a separate module, or folding it into the target compilation phase?
Can you show us the bridging header (which implies you’ve added FMDB in-target)?
Are you importing the FMDB module into your Swift source (if a separate module)?
Does Swift not-recognize all of the FMDB classes, or just some? Or is “the datatype” something other than an FMDB-defined class?
Beyond this, I’d be getting into things from the Using Swift with Cocoa and Objective-C document.
— F
_______________________________________________
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