couchbase / couchbase-lite-ios

Lightweight, embedded, syncable NoSQL database engine for iOS and MacOS apps.
Apache License 2.0
1.63k stars 297 forks source link

tvOS Unit Test Build has a lot of warnings #1387

Closed pasin closed 8 years ago

pasin commented 8 years ago

Error:

Undefined symbols for architecture arm64:
  "_MYError", referenced from:
      -[MYAction_Test testFailure] in MYAction_Test.o
  "couchbase::differ::BaseDiffer::dump()", referenced from:
      test(ArrayDiff_Test*, char const*, char const*, std::__1::vector<couchbase::differ::Change, std::__1::allocator<couchbase::differ::Change> >, std::__1::vector<couchbase::differ::Change, std::__1::allocator<couchbase::differ::Change> > const*) in ArrayDiff_Test.o
      -[ArrayDiff_Test testDifferScaling] in ArrayDiff_Test.o
  "_CBLTextKey", referenced from:
      ___42-[ViewInternal_Tests test23_FullTextQuery]_block_invoke in ViewInternal_Tests.o
      ___42-[ViewInternal_Tests test23_FullTextQuery]_block_invoke_2 in ViewInternal_Tests.o
      ___44-[ViewInternal_Tests test24_FullTextRanking]_block_invoke in ViewInternal_Tests.o
      ___51-[ViewInternal_Tests test25_FullTextQuery_Advanced]_block_invoke in ViewInternal_Tests.o
  "_kCBLProgressErrorKey", referenced from:
      ___52-[Replication_Tests expectationForProgress:logging:]_block_invoke in Replication_Tests.o
      -[Replication_Tests test20_LazyPullAttachments] in Replication_Tests.o
      -[Replication_Tests test21_LazyPullMissingAttachment] in Replication_Tests.o
      -[Replication_Tests test22_NonDownloadedAttachments] in Replication_Tests.o
  "_CBLGeoJSONKey", referenced from:
      ___29-[View_Tests test17_GeoQuery]_block_invoke in View_Tests.o
      ___38-[ViewInternal_Tests createViewNamed:]_block_invoke in ViewInternal_Tests.o
      ___34-[ViewInternal_Tests test02_Index]_block_invoke in ViewInternal_Tests.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

pasin commented 8 years ago

There are also some warnings due to not setting tvOS deployment target in some dependency projects:

Ld /Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/CBL\ tvOS\ Test\ App.app/PlugIns/CBL\ tvOS\ Unit\ Tests.xctest/CBL\ tvOS\ Unit\ Tests normal arm64
    cd /Users/pasin/Git/couchbase/couchbase-lite-ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export TVOS_DEPLOYMENT_TARGET=9.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.2.sdk -L/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos -F/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -filelist /Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Intermediates/CouchbaseLite.build/Debug-appletvos/CBL\ tvOS\ Unit\ Tests.build/Objects-normal/arm64/CBL\ tvOS\ Unit\ Tests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mtvos-version-min=9.0 -dead_strip -bundle_loader /Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/CBL\ tvOS\ Test\ App.app/CBL\ tvOS\ Test\ App -Xlinker -no_deduplicate -ObjC -framework XCTest -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -lCBLForestDBStorage -lCBLJSViewCompiler -Xlinker -dependency_info -Xlinker /Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Intermediates/CouchbaseLite.build/Debug-appletvos/CBL\ tvOS\ Unit\ Tests.build/Objects-normal/arm64/CBL\ tvOS\ Unit\ Tests_dependency_info.dat -o /Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/CBL\ tvOS\ Test\ App.app/PlugIns/CBL\ tvOS\ Unit\ Tests.xctest/CBL\ tvOS\ Unit\ Tests

ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Error.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(GeoIndex.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(slice-E2CA260402F0983F.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Database.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(c4Database.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(KeyStore.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Document.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Geohash.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(VersionedDocument-AC75877B749AD443.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(DocEnumerator.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(MapReduceIndex.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Collatable-7E85D3B7FDB87C65.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(c4Document.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Collatable-1DA8E2290FBAEF41.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(varint.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(c4ExpiryEnumerator.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(FullTextIndex.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Tokenizer.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(RevTree.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(c4DocEnumerator.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(RevID-D530374491E3B848.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(RevID-5FD0FE6120B7058E.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(slice-7125AAA8D8C8584E.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(c4Key.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(VersionedDocument-A32431EE507CF469.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(Index.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(c4View.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(debug.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(crc32.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(docio.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(api_wrapper.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(snappy-sinksource.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(bgflusher.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(staleblock.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(btreeblock.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(transaction.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(time_utils.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(filemgr.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(hbtrie.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(compactor.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(wal.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(version.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(blockcache.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(snappy.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(partiallock.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(breakpad_dummy.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(btree_fast_str_kv.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(encryption_bogus.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(filemgr_ops_windows.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(superblock.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(btree_kv.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(list.o)) was built for newer tvOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/pasin/Library/Developer/Xcode/DerivedData/CouchbaseLite-cywhaolekzwqmthiymjnzufksgtb/Build/Products/Debug-appletvos/libCBLForestDBStorage.a(snappy-c.o)) was built for newer tvOS version (9.2) than being linked (9.0)
pasin commented 8 years ago

I verified that the issue doesn't affect the built binary (build 61).

pasin commented 8 years ago

I keep the issue open for fixing warnings. The warnings do not affect the 1.3 release binary.