Giter Site home page Giter Site logo

Comments (27)

kartiksolanki avatar kartiksolanki commented on June 12, 2024 1

Nevermind, I fixed it by doing a fresh install of cocoapods.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024 1

Always open the ".xcworkspace". This "workspace" includes the ".xcodeproj" and external libraries, like those installed by cocoapods.

I believe everything is fine now, if you get any other issue, let me know.

from cordova-plugin-fcm-with-dependecy-updated.

kartiksolanki avatar kartiksolanki commented on June 12, 2024

Tried removing the iOS platform and adding it back again and it fails while adding platform with following error:

Installing "cordova-plugin-fcm-with-dependecy-updated" for ios
Running command: pod install --verbose
Failed to install 'cordova-plugin-fcm-with-dependecy-updated': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/Users/wearesas/Desktop/Covid19/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:310:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
pod: Command failed with exit code 1
[ERROR] An error occurred while running subprocess cordova.

from cordova-plugin-fcm-with-dependecy-updated.

timcensus avatar timcensus commented on June 12, 2024

Hello,

I'm encountering this problem as well, doing a fresh pod install all is fine.
But whenever I try to build it in Xcode it fails with the same error.
ld: library not found for -lFirebaseCore clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea what can cause this and how I can fix this?
Cordova version 9.0.0
Cordova iOS version: 5.1.1

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Just to check: Did you open the platforms/ios/[App name].xcworkspace or platforms/ios/[App name].xcodeproj in XCode?

from cordova-plugin-fcm-with-dependecy-updated.

timcensus avatar timcensus commented on June 12, 2024

.xcodeproj, when I open xcworkspace it doesn't give an error and everything works.
Is there a link missing in the .xcodeproj file?

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

I'm getting the same issue when building with 'ionic cordova build ios'
However, it build fine when building from XCode (opening the xcworkspace file)
I am using latest version (7.0.6)

At some point I had the error "ld: library not found for -lFirebaseCore" but it seems fixed since I laucnhed a build from XCode. But now I'm getting "ld: library not found for -lPods-Boks" ("Boks" is the name of y project)

Here are the logs now:

warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Boks' from project 'Boks')

Ld /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Binary/Boks normal armv7 (in target 'Boks' from project 'Boks')
    cd /Users/quentinfarizon/boks-app/platforms/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target armv7-apple-ios8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -L/Users/quentinfarizon/boks-app/platforms/ios/build/device -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseCore -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseCoreDiagnostics -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseInstallations -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseInstanceID -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseMessaging -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/GoogleDataTransport -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/GoogleUtilities -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/PromisesObjC -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/Protobuf -L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/nanopb -F/Users/quentinfarizon/boks-app/platforms/ios/build/device -F/Users/quentinfarizon/boks-app/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/quentinfarizon/boks-app/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Boks.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Boks_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -final_output -Xlinker /Applications/Boks.app/Boks -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lFirebaseCore -lFirebaseCoreDiagnostics -lFirebaseInstallations -lFirebaseInstanceID -lFirebaseMessaging -lGoogleDataTransport -lGoogleUtilities -lPromisesObjC -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework CoreTelephony -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework Foundation -framework GoogleAppMeasurement -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework UserNotifications /Users/quentinfarizon/boks-app/platforms/ios/build/device/libCordova.a -weak_framework SafariServices -weak_framework WebKit -framework QuartzCore -framework CoreBluetooth -weak_framework AudioToolbox -lc++ -lz -framework AddressBook -lsqlite3.0 -framework Security -lPods-Boks -Xlinker -dependency_info -Xlinker /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Boks_dependency_info.dat -o /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Binary/Boks
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseCore'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseCoreDiagnostics'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseInstallations'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseInstanceID'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseMessaging'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/GoogleDataTransport'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/GoogleUtilities'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/PromisesObjC'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/Protobuf'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/nanopb'
ld: library not found for -lPods-Boks
clang: error: linker command failed with exit code 1 (use -v to see invocation)

CompileC /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/arm64/SQLitePlugin.o /Users/quentinfarizon/boks-app/platforms/ios/Boks/Plugins/cordova-sqlite-storage/SQLitePlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Boks' from project 'Boks')
    cd /Users/quentinfarizon/boks-app/platforms/ios
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios8.0 -fmessage-length=266 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DCOCOAPODS=1 -DDEBUG=1 -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -DDEBUG=1 -DPB_FIELD_32BIT=1 -DPB_NO_PACKED_STRUCTS=1 -DPB_ENABLE_MALLOC=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Boks-generated-files.hmap -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Boks-own-target-headers.hmap -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Boks-all-target-headers.hmap -iquote /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Boks-project-headers.hmap -I/Users/quentinfarizon/boks-app/platforms/ios/build/device/include -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/quentinfarizon/boks-app/platforms/ios/build/device -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/Firebase -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/FirebaseCore -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/FirebaseCoreDiagnostics -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/FirebaseInstallations -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/FirebaseInstanceID -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/FirebaseMessaging -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/GoogleDataTransport -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/GoogleUtilities -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/PromisesObjC -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/Protobuf -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Headers/Public/nanopb -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/quentinfarizon/boks-app/platforms/ios/build/device -I/Users/quentinfarizon/boks-app/platforms/ios/Pods/Firebase/CoreOnly/Sources -I/Sources/FBLPromises/include -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/DerivedSources-normal/arm64 -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/DerivedSources/arm64 -I/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/DerivedSources -F/Users/quentinfarizon/boks-app/platforms/ios/build/device -F/Users/quentinfarizon/boks-app/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/quentinfarizon/boks-app/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -include /Users/quentinfarizon/boks-app/platforms/ios/build/sharedpch/SharedPrecompiledHeaders/5629741895718757712/Boks-Prefix.pch -MMD -MT dependencies -MF /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/arm64/SQLitePlugin.d --serialize-diagnostics /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/arm64/SQLitePlugin.dia -c /Users/quentinfarizon/boks-app/platforms/ios/Boks/Plugins/cordova-sqlite-storage/SQLitePlugin.m -o /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/arm64/SQLitePlugin.o
warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Boks' from project 'Boks')

** ARCHIVE FAILED **


The following build commands failed:
	Ld /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Binary/Boks normal armv7
(1 failure)
Command finished with error code 65: xcodebuild -workspace,Boks.xcworkspace,-scheme,Boks,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Boks.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/quentinfarizon/boks-app/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/quentinfarizon/boks-app/platforms/ios/build/sharedpch
xcodebuild: Command failed with exit code 65

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

I've cleaned platforms/ios, www and plugins, build, manually ran pod install, rebuild again, but I still have again the error about "-lFirebaseCore" :

ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseCore'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseCoreDiagnostics'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseInstallations'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseInstanceID'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/FirebaseMessaging'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/GoogleDataTransport'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/GoogleUtilities'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/PromisesObjC'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/Protobuf'
ld: warning: directory not found for option '-L/Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/BuildProductsPath/Debug-iphoneos/nanopb'
ld: library not found for -lFirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **


The following build commands failed:
	Ld /Users/quentinfarizon/Library/Developer/Xcode/DerivedData/Boks-dfnbvuierzutxjfylhvulxmmjcfc/Build/Intermediates.noindex/ArchiveIntermediates/Boks/IntermediateBuildFilesPath/Boks.build/Debug-iphoneos/Boks.build/Objects-normal/armv7/Binary/Boks normal armv7
(1 failure)
Command finished with error code 65: xcodebuild -workspace,Boks.xcworkspace,-scheme,Boks,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Boks.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/quentinfarizon/boks-app/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/quentinfarizon/boks-app/platforms/ios/build/sharedpch
xcodebuild: Command failed with exit code 65
Error: xcodebuild: Command failed with exit code 65

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

@QuentinFarizon
Would you share your platforms/ios/Podfile?

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

Here it is :

# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'

target 'Boks' do
	project 'Boks.xcodeproj'
	pod 'Firebase/Analytics', '>= 6.21.0'
	pod 'Firebase/Messaging', '>= 6.21.0'
end

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

@QuentinFarizon
The file seems correct.

Would you share your Podfile.lock as well?

When you manually ran pod install on your platforms/ios directory, did you got any error messages?

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

Here it is :

PODS:
  - Firebase/Analytics (6.28.1):
    - Firebase/Core
  - Firebase/Core (6.28.1):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.6.2)
  - Firebase/CoreOnly (6.28.1):
    - FirebaseCore (= 6.9.1)
  - Firebase/Messaging (6.28.1):
    - Firebase/CoreOnly
    - FirebaseMessaging (~> 4.6.0)
  - FirebaseAnalytics (6.6.2):
    - FirebaseCore (~> 6.8)
    - FirebaseInstallations (~> 1.4)
    - GoogleAppMeasurement (= 6.6.2)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 1.30905.0)
  - FirebaseCore (6.9.1):
    - FirebaseCoreDiagnostics (~> 1.3)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/Logger (~> 6.7)
  - FirebaseCoreDiagnostics (1.5.0):
    - GoogleDataTransport (~> 7.0)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/Logger (~> 6.7)
    - nanopb (~> 1.30905.0)
  - FirebaseInstallations (1.5.0):
    - FirebaseCore (~> 6.8)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/UserDefaults (~> 6.7)
    - PromisesObjC (~> 1.2)
  - FirebaseInstanceID (4.5.0):
    - FirebaseCore (~> 6.8)
    - FirebaseInstallations (~> 1.0)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/UserDefaults (~> 6.7)
  - FirebaseMessaging (4.6.0):
    - FirebaseCore (~> 6.8)
    - FirebaseInstanceID (~> 4.3)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.7)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/Reachability (~> 6.7)
    - GoogleUtilities/UserDefaults (~> 6.7)
    - Protobuf (>= 3.9.2, ~> 3.9)
  - GoogleAppMeasurement (6.6.2):
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 1.30905.0)
  - GoogleDataTransport (7.0.0):
    - nanopb (~> 1.30905.0)
  - GoogleUtilities/AppDelegateSwizzler (6.7.1):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.7.1):
    - PromisesObjC (~> 1.2)
  - GoogleUtilities/Logger (6.7.1):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (6.7.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (6.7.1):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.7.1)"
  - GoogleUtilities/Reachability (6.7.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (6.7.1):
    - GoogleUtilities/Logger
  - nanopb (1.30905.0):
    - nanopb/decode (= 1.30905.0)
    - nanopb/encode (= 1.30905.0)
  - nanopb/decode (1.30905.0)
  - nanopb/encode (1.30905.0)
  - PromisesObjC (1.2.9)
  - Protobuf (3.12.0)

DEPENDENCIES:
  - Firebase/Analytics (>= 6.21.0)
  - Firebase/Messaging (>= 6.21.0)

SPEC REPOS:
  trunk:
    - Firebase
    - FirebaseAnalytics
    - FirebaseCore
    - FirebaseCoreDiagnostics
    - FirebaseInstallations
    - FirebaseInstanceID
    - FirebaseMessaging
    - GoogleAppMeasurement
    - GoogleDataTransport
    - GoogleUtilities
    - nanopb
    - PromisesObjC
    - Protobuf

SPEC CHECKSUMS:
  Firebase: ed042590caa0029392257529a8003c25ee82bc18
  FirebaseAnalytics: 5fa308e1b13f838d0f6dc74719ac2a72e8c5afc4
  FirebaseCore: 687b8e6a0a4337b898a6326d68254c2f80c143af
  FirebaseCoreDiagnostics: 7535fe695737f8c5b350584292a70b7f8ff0357b
  FirebaseInstallations: 3c520c951305cbf9ca54eb891ff9e6d1fd384881
  FirebaseInstanceID: 358d5cb393d2750a745569ede06827c35aea530b
  FirebaseMessaging: bdd4d573eab37ebee29bad4e7c4b0ef18fa1a952
  GoogleAppMeasurement: 8cd1f289d60e629cf16ab03363b9e89c776b9651
  GoogleDataTransport: 8a40cb194ad242b6f6dfe72c14fe40fc67c4dcd7
  GoogleUtilities: e121a3867449ce16b0e35ddf1797ea7a389ffdf2
  nanopb: c43f40fadfe79e8b8db116583945847910cbabc9
  PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75
  Protobuf: 2793fcd0622a00b546c60e7cbbcc493e043e9bb9

PODFILE CHECKSUM: 697c88e0bf6fe8988f3e9b1a3ebefd23b0a2f425

COCOAPODS: 1.9.0

No error on manual pod install :

$ pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 2 dependencies from the Podfile and 13 total pods installed.

I'm seeing that I'm using a bit outdated version of cordova-ios, 5.0.1, maybe that's the cause ? I will try to upgrade it.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

I'm seeing that I'm using a bit outdated version of cordova-ios, 5.0.1, maybe that's the cause ? I will try to upgrade it.

It shouldn't be.

But at this point, I'm still trying to find possible issues.

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

Not sure if this is linked, but I get the annoying warning :
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.6.99. (in target 'nanopb' from project 'Pods')

Even though I have set a minimum version in config.xml : <preference name="deployment-target" value="11.0" />

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

It builds fine with [email protected]
Maybe this would mandate setting it as a peer dependency ?

Edit : nope, still broken when doing a fresh build

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

I've tried using hooks to run pod update and install, but without luck (referring to https://ionic.zendesk.com/hc/en-us/articles/360010049673-Managing-plugins-using-cocoapods-in-Ionic-Pro)

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

I've made it work using https://github.com/blakgeek/cordova-plugin-cocoapods-support with :

<pod name="Firebase/Analytics" />
<pod name="Firebase/Messaging" />

This is definitely a hack since it completely overwrites the cocoapod dependencies and needs to be managed manually

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

I've made it work using https://github.com/blakgeek/cordova-plugin-cocoapods-support with :

<pod name="Firebase/Analytics" />
<pod name="Firebase/Messaging" />

This doesn't make much sense.

This is definitely a hack since it completely overwrites the cocoapod dependencies and needs to be managed manually

Yes.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

As you can see here:
https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/master/plugin.xml#L121

The plugin itself has the cocoapods definition. But its XML structure differs from what is suggested on https://github.com/blakgeek/cordova-plugin-cocoapods-support#how-do-i-use-it.

Still no good answer from my point of view, rather than just:

  • Removing the newly added cordova-plugin-cocoapods-support;
  • Setting the on project's config.xml as it is on this plugin's plugin.xml:
<pods>
	<pod name="Firebase/Analytics" spec=">= 6.21.0" />
	<pod name="Firebase/Messaging" spec=">= 6.21.0" />
</pods>

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

This doesn't make much sense.

I'm not sure what you mean, indeed it's replacing the whole pods mechanism, but it does work for me as a workaround, in the sense of build success and app running.

I'm not sure why moving the pods section from the plugin's plugin.xml to config.xml would solve the issue, since my Podfile and lock were correct

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

@QuentinFarizon
I do agree completely.
But then, why would having https://github.com/blakgeek/cordova-plugin-cocoapods-support help the build in any way?

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

Well this plugin has its own hooks/scripts to install pods, see
https://github.com/blakgeek/cordova-plugin-cocoapods-support/blob/master/plugin.xml#L14
And
https://github.com/blakgeek/cordova-plugin-cocoapods-support/blob/master/scripts/podify.js#L51-L56

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Well this plugin has its own hooks/scripts to install pods, see
https://github.com/blakgeek/cordova-plugin-cocoapods-support/blob/master/plugin.xml#L14
And
https://github.com/blakgeek/cordova-plugin-cocoapods-support/blob/master/scripts/podify.js#L51-L56

Now I got it, thanks.

from cordova-plugin-fcm-with-dependecy-updated.

QuentinFarizon avatar QuentinFarizon commented on June 12, 2024

Maybe you could use this plugin as a dependency, if you want to externalize the cocoapods management :)

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

There is probably a cleaner way to do it.

from cordova-plugin-fcm-with-dependecy-updated.

andrehtissot avatar andrehtissot commented on June 12, 2024

Created enhancement ticket as #148 as to investigate improvements in the future.

from cordova-plugin-fcm-with-dependecy-updated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.