couchbase / couchbase-lite-ios

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

Build error #3313

Closed eakarsu closed 1 month ago

eakarsu commented 1 month ago

I am building project with scripts/build_framework.sh for CBL_Swift for ios, I am getting error

Logs Sharing logs will make debugging and troubleshooting easier.

Screenshots If applicable, add screenshots to

pasin commented 1 month ago

What is the error you are having? I recommend to use the script to build xcframework instead.

Scripts/build_xcframework.sh -s "CBL_Swift" -o <your output directory>
eakarsu commented 1 month ago

Thanks for helping. But that script you adviced to use is also getting same error

eakarsu commented 1 month ago

./Scripts/build_xcframework.sh -s CBL_Swift -o output

/Users/erakarsu/research/couchbase-lite-ios/Objective-C/Internal/CBLPrefix.h:24:9: fatal error: 'fleece/Fleece.h' file not found

import "fleece/Fleece.h"

    ^~~~~~~~~~~~~~~~~

1 error generated. note: Run script build phase 'Remove Private Module' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'CBL_Swift' from project 'CouchbaseLite') ARCHIVE FAILED

The following build commands failed: ProcessPCH++ /Users/erakarsu/Library/Developer/Xcode/DerivedData/CouchbaseLite-bgcjfcjogfzctcdlgxqdcepjlahm/Build/Intermediates.noindex/ArchiveIntermediates/CBL_Swift/PrecompiledHeaders/SharedPrecompiledHeaders/1348955647072114454/CBLPrefix.h.gch /Users/erakarsu/research/couchbase-lite-ios/Objective-C/Internal/CBLPrefix.h normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.analyzer (in target 'CBL_Swift' from project 'CouchbaseLite') ProcessPCH++ /Users/erakarsu/Library/Developer/Xcode/DerivedData/CouchbaseLite-bgcjfcjogfzctcdlgxqdcepjlahm/Build/Intermediates.noindex/ArchiveIntermediates/CBL_Swift/PrecompiledHeaders/SharedPrecompiledHeaders/1288389167757695930/CBLPrefix.h.gch /Users/erakarsu/research/couchbase-lite-ios/Objective-C/Internal/CBLPrefix.h normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CBL_Swift' from project 'CouchbaseLite') ProcessPCH++ /Users/erakarsu/Library/Developer/Xcode/DerivedData/CouchbaseLite-bgcjfcjogfzctcdlgxqdcepjlahm/Build/Intermediates.noindex/ArchiveIntermediates/CBL_Swift/PrecompiledHeaders/SharedPrecompiledHeaders/16621548804183882929/CBLPrefix.h.gch /Users/erakarsu/research/couchbase-lite-ios/Objective-C/Internal/CBLPrefix.h normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CBL_Swift' from project 'CouchbaseLite') (3 failures)

eakarsu commented 1 month ago

This is resolved. I missed check out command

eakarsu commented 1 month ago

Can you please another ticket I have created?

Thanks

Erol Akarsu

On Wed, Jul 31, 2024 at 10:55 AM Pasin Suriyentrakorn < @.***> wrote:

Closed #3313 https://github.com/couchbase/couchbase-lite-ios/issues/3313 as completed.

— Reply to this email directly, view it on GitHub https://github.com/couchbase/couchbase-lite-ios/issues/3313#event-13711415957, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY2TUFFCUG6775QZGJKTUDZPD3HZAVCNFSM6AAAAABLQUFCFCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTG4YTCNBRGU4TKNY . You are receiving this because you authored the thread.Message ID: @.*** com>