GEDYSIntraWare / cordova-plugin-call-directory

Cordova plugin for using iOS Callkit call identification
https://www.npmjs.com/package/cordova-plugin-call-directory
MIT License
6 stars 1 forks source link

[BUG] Error during the build fase with command-line. #29

Open DeliveryBMS opened 2 years ago

DeliveryBMS commented 2 years ago

When i try to compile my cordova project with command-line i obtain an error. If i remove the cordova-plugin-call-directory from my project the build command works fine.

To Reproduce cordova platform rm ios

cordova plugin rm cordova-plugin-call-directory

cordova plugin add cordova-plugin-call-directory --variable EXT_NAME="Cordova-Directory" --variable ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES="NO" --variable DEVELOPMENT_TEAM="my_team" --variable PROVISIONING_PROFILE="my_provision_id"

cordova platform add ios

cordova build ios --device --release

Expected behavior A clear and concise description of what you expected to happen.

Logs CompileC /Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVCommandQueue.o Classes/Public/CDVCommandQueue.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/xxxxx/myWork/APP/platforms/ios/CordovaLib export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/xxxxx/.nvm/versions/node/v15.14.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/xxxxx/Applications/apache-maven-3.6.0/bin:/Users/xxxxx/Library/Android/sdk/emulator:/Users/xxxxx/Library/Android/sdk/tools:/Users/xxxxx/Library/Android/sdk/tools/bin:/Users/xxxxx/Library/Android/sdk/platform-tools:/Users/xxxxx/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1/gradle-4.4/bin:/Users/xxxxx/Library/Python/2.7/bin:/Users/xxxxx/Applications/flutter/bin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios11.0 -fmessage-length=238 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/xxxxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/xxxxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -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 -Wconditional-uninitialized -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 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fembed-bitcode -iquote /Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/xxxxx/myWork/APP/platforms/ios/build/device/include -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/DerivedSources-normal/arm64 -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/DerivedSources -F/Users/xxxxx/myWork/APP/platforms/ios/build/device -include /Users/xxxxx/myWork/APP/platforms/ios/build/sharedpch/CordovaLib_Prefix-amjwnqcpauaesdaojnvhlqsayset/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVCommandQueue.d --serialize-diagnostics /Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVCommandQueue.dia -c /Users/xxxxx/myWork/APP/platforms/ios/CordovaLib/Classes/Public/CDVCommandQueue.m -o /Users/xxxxx/Library/Developer/Xcode/DerivedData/MyApp-bpdfcqaobzinnvbbfmtuuhbpylql/Build/Intermediates.noindex/ArchiveIntermediates/My\ App/IntermediateBuildFilesPath/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVCommandQueue.o

ARCHIVE FAILED

The following build commands failed: Check dependencies (1 failure) xcodebuild: Command failed with exit code 65

NiklasMerz commented 2 years ago

Is this the complete log? I cannot se any error about this plugin. This just looks like the normal xcodebuild errors, possibly related to signing issues.

DeliveryBMS commented 2 years ago

Hi Niklas, thanks for your feedback.

This is the last part of output. Before i don't see any error. If i compile the app without the plugin (cordova plugin rm ...) the compiling works fine.

When i run :

cordova plugin add cordova-plugin-call-directory --variable EXT_NAME="Cordova-Directory" --variable ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES="NO" --variable DEVELOPMENT_TEAM="my_team" --variable PROVISIONING_PROFILE="my_provision_id"

cordova platform add ios

i don't see any error.

Do you have any suggest?

DeliveryBMS commented 2 years ago

I've try to open the project with Xcode and i see that the provisioning of "plugin" is not linked.

How can i link it automatically?