FancyPixel / done-swift

Sample app to demonstrate data sharing between a WatchKit app and its main app using Realm
MIT License
149 stars 24 forks source link

Could not build Objective-C module 'Realm' #1

Closed daniesy closed 9 years ago

daniesy commented 9 years ago

XCode Error

andreamazz commented 9 years ago

Hi @Daniesy Sometimes the workspace gets out of sync, just select the Pods-Realm target (enable it if it's not available) and build it. Once it's built you can switch back to the other targets and they should compile just fine.

quantumpotato commented 9 years ago

@andreamazz How do I enable the target? I see it in the Project file but not in my simulator target list.

andreamazz commented 9 years ago

Product -> Scheme -> Manage Scheme Enable the "Show" checkbox for Pods-Realm

quantumpotato commented 9 years ago

When I did that, I see "no Scheme". was able to build.. had to restart Xcode to get my Done target scheme back. Had to fix a few compile errors then when running I got

fatal error: unexpectedly found nil while unwrapping an Optional value

(lldb) on

     let directory: NSURL = NSFileManager.defaultManager().

containerURLForSecurityApplicationGroupIdentifier("group.it.fancypixel.Done" )!

do I need to use my own group Identifier?

On Sat, Jun 20, 2015 at 3:22 PM, Andrea Mazzini notifications@github.com wrote:

Product -> Scheme -> Manage Scheme Enable the "Show" checkbox for Pods-Realm

— Reply to this email directly or view it on GitHub https://github.com/FancyPixel/done-swift/issues/1#issuecomment-113807246 .

andreamazz commented 9 years ago

Yes, you need your own group id registered in your developer portal for this to work.

AliAyasrah commented 9 years ago

@andreamazz hello

same issue here, but I cant find Pods-Realm and if I add realm framework by my self i got pods error

Image

andreamazz commented 9 years ago

Checkout the latest commit. I removed the cocoapods integration in favor of the embedded dynamic framework, and updated the syntax to Swift 1.2.