Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not loading linker command failed with exit code 1 (use -v to see invocation) #4

Open
Ged2323 opened this issue Dec 23, 2015 · 0 comments

Comments

@Ged2323
Copy link

Ged2323 commented Dec 23, 2015

This is with latest realm realm-swift-0.97-4.0 - Xcode 7.2 , swift 2.1.1

WatchKit has this error on ln 22: 'stringByAppendingPathComponent' is unavailable: Use URLByAppendingPathComponent on NSURL instead.

I fixed this with this:

let directory: NSURL = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier("group.realm.testing23")!
        let realmPath = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("db.realm")

        //let realmPath = directory.path!.stringByAppendingPathComponent("db.realm")
        RLMRealm.setDefaultRealmPath(realmPath.absoluteString)

Please check. :)

then this error once all the groups are set up:

ld: building for watchOS, but linking against dylib built for iOS, file '"mylocation"RealmSwift.framework/RealmSwift' for architecture armv7k
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant