Hi Everybody,
Need help with the following errors when building IOS app with Ionic & Cordova.
ld: Library not found for -lPods-sampleProject
clang: error: linker command failed with exit code 1
Below are a few approaches we tried but still failed to generate the build.
Changed PODS_ROOT and PODFILE_DIR_PATH in build setting
Tried deintegrated pods then pod install or pod update
checked the same libraries and frameworks that are available in project and Xcode
The derived data also cleaned many times in Xcode before build
Plugins removed from project then tried build
Updated Cocoapods in the system
Then later removed all plugins and added only push notifications plugin which is still resulting in the following issue in Ionic console:
ld: Library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1
BUILD FAILED
The following build commands failed:
Ld /Users/…/path-to-project normal (in target ‘sampleProject’ from project ‘sampleProject’)
(1 failure)
xcodebuild: Command failed with exit code 65
ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 65.
Following process failed when we tried to build in xcode:
error: Build input file cannot be found: ‘/Users/…/path-to-project’ (in target ‘sampleProject’ from project ‘sampleProject’)
Below are versions of the Project
Node: 14.15.0, Angular 13.3.11, Ionic 6.20.1, Cordova 11.0.0 & Xcode 13
Thanks in advance