0

Steps to reproduce:

  1. Create a new single page application in swift using Xcode 6 beta 5
  2. Add TouchDB.framework and CouchCocoa.framework to project by following this steps
  3. Add a new swift file to project and type
  4. Create a bridging header file and import CouchCocoa:

    import < CouchCocoa/CouchCocoa.h >

  5. Add a new swift file to project and type

    class TestData : CouchMode { }

  6. Build the project,

ld: warning: ignoring file /Users/Robin/Documents/TouchTest/Frameworks/TouchDB.framework/TouchDB, missing required architecture x86_64 in file /Users/Robin/Documents/TouchTest/Frameworks/TouchDB.framework/TouchDB (3 slices)

ld: warning: ignoring file /Users/Robin/Documents/TouchTest/Frameworks/CouchCocoa.framework/CouchCocoa, missing required architecture x86_64 in file /Users/Robin/Documents/TouchTest/Frameworks/CouchCocoa.framework/CouchCocoa (3 slices)

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CouchModel", referenced from: _OBJC_CLASS_$__TtC9TouchTest8TestData in ViewController.o "_OBJC_METACLASS_$_CouchModel", referenced from: _OBJC_METACLASS_$__TtC9TouchTest8TestData in ViewController.o

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any help here? This works previously on Xcode 6 Beta 4

Apologize for bad english

mugx
  • 9,869
  • 3
  • 43
  • 55
Robin
  • 21
  • 1
  • 1
  • Does it build for the actual device? – sapi Aug 12 '14 at 10:29
  • Have you seen that you can use CocoaPods to install TouchDB? [see this](http://cocoapods.org/?q=touch%20db) I have myself used CocoaPods in Xcode 6 Beta 5 and have installed some pods everything works fine. – Fred Aug 12 '14 at 18:50
  • @sapi I don't know. I'm very very new to Xcode and swift. – Robin Aug 13 '14 at 01:33
  • you should follow the steps provided by Couchbase , its well explained , i resolved my issue same way – Shobhakar Tiwari Nov 12 '17 at 07:14

0 Answers0