transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
656 stars 277 forks source link

IOS - clang: error: linker command failed with exit code 1 (use -v to see invocation) #1429

Closed codingwithashu closed 6 days ago

codingwithashu commented 5 months ago

Your Environment

com.ourcodeworld.appinstalled 1.0.0 "Our Code World App Installed" cordova-background-geolocation-lt 4.15.3 "BackgroundGeolocation" cordova-plugin-actionsheet 2.3.3 "ActionSheet" cordova-plugin-android-permissions 1.1.3 "Permissions" cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter" cordova-plugin-appavailability 0.4.2 "AppAvailability" cordova-plugin-background-fetch 7.2.1 "CDVBackgroundFetch" cordova-plugin-camera-preview 0.12.3 "cordova-plugin-camera-preview" cordova-plugin-camera 6.0.1-dev "Camera" cordova-plugin-cszbar 1.3.2 "ZBar barcode scanner" cordova-plugin-device 2.0.2 "Device" cordova-plugin-dialogs 2.0.2 "Notification" cordova-plugin-file-opener2 3.0.5 "File Opener2" cordova-plugin-file-transfer 2.0.0 "File Transfer" cordova-plugin-file 8.0.1-dev "File" cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview" cordova-plugin-network-information 3.0.0 "Network Information" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" ionic-plugin-deeplinks 1.0.22 "Ionic Deeplink Plugin" onesignal-cordova-plugin 3.0.4 "OneSignal Push Notifications" uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.6 "Launch Navigator"



## Context
d: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
ld: Undefined symbols:
  _OBJC_CLASS_$_DDASLLogger, referenced from:
       in TSLocationManager[arm64][15](TSLog.o)
  _OBJC_CLASS_$_DDAbstractDatabaseLogger, referenced from:
      _OBJC_CLASS_$_TSDBLogger in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_CLASS_$_DDLog, referenced from:
       in TSLocationManager[arm64][3](LocationAuthorization.o)
  _OBJC_CLASS_$_DDOSLogger, referenced from:
       in TSLocationManager[arm64][15](TSLog.o)
  _OBJC_CLASS_$_DDTTYLogger, referenced from:
       in TSLocationManager[arm64][15](TSLog.o)
  _OBJC_IVAR_$_DDAbstractDatabaseLogger._maxAge, referenced from:
      -[TSDBLogger getLog:] in TSLocationManager[arm64][8](TSDBLogger.o)
      -[TSDBLogger db_delete] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_IVAR_$_DDAbstractDatabaseLogger._saveThreshold, referenced from:
      -[TSDBLogger initWithLogDirectory:] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_IVAR_$_DDAbstractLogger._logFormatter, referenced from:
      -[TSDBLogger db_log:] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_IVAR_$_DDLogMessage._context, referenced from:
      -[TSDBLogEntry initWithLogMessage:] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_IVAR_$_DDLogMessage._flag, referenced from:
      -[TSDBLogEntry initWithLogMessage:] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_IVAR_$_DDLogMessage._message, referenced from:
      -[TSDBLogEntry initWithLogMessage:] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_IVAR_$_DDLogMessage._timestamp, referenced from:
      -[TSDBLogEntry initWithLogMessage:] in TSLocationManager[arm64][8](TSDBLogger.o)
  _OBJC_METACLASS_$_DDAbstractDatabaseLogger, referenced from:
      _OBJC_METACLASS_$_TSDBLogger in TSLocationManager[arm64][8](TSDBLogger.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
christocracy commented 5 months ago

Remove / re-add the Cordova ios platform.

codingwithashu commented 5 months ago

did still same error

christocracy commented 5 months ago

What version of XCode are you using?

codingwithashu commented 5 months ago

Version 15.0.1 (15A507)

christocracy commented 5 months ago

show me your platforms/ios/Podfile

codingwithashu commented 5 months ago

DO NOT MODIFY -- auto-generated by Apache Cordova

source 'https://cdn.cocoapods.org/' platform :ios, '11.0'

target 'SOS Lite' do project 'SOS Lite.xcodeproj' pod 'CocoaLumberjack', '3.7.2' end

christocracy commented 5 months ago

In that folder, run $ pod install

codingwithashu commented 5 months ago

Analyzing dependencies Downloading dependencies Generating Pods project Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

[!] The SOS Lite [Debug] target overrides the PODS_PODFILE_DIR_PATH build setting defined in `Pods/Target Support Files/Pods-SOS Lite/Pods-SOS Lite.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The SOS Lite [Debug] target overrides the PODS_ROOT build setting defined in `Pods/Target Support Files/Pods-SOS Lite/Pods-SOS Lite.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The SOS Lite [Release] target overrides the PODS_PODFILE_DIR_PATH build setting defined in `Pods/Target Support Files/Pods-SOS Lite/Pods-SOS Lite.release.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The SOS Lite [Release] target overrides the PODS_ROOT build setting defined in `Pods/Target Support Files/Pods-SOS Lite/Pods-SOS Lite.release.xcconfig'. This can lead to problems with the CocoaPods installation

christocracy commented 5 months ago

I suggest you follow the instructions in the warning:

The SOS Lite [Debug] target overrides the PODS_PODFILE_DIR_PATH build setting defined in Pods/Target Support Files/Pods-SOS Lite/Pods-SOS Lite.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)` flag, or

  • Remove the build settings from the target.
codingwithashu commented 5 months ago

If i remove that , getting new error index/SOS\\ Lite.build/Debug-iphonesimulator/SOS\\ Lite.build/Script-6D4D156ED98FDAF483AC4DE8.sh diff: /Podfile.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

and also in platforms/ios -- run pod install then also same

christocracy commented 5 months ago

I have no idea what's wrong with your app.

I suggest you attempt to reproduce this in a simple HelloWorld app.

codingwithashu commented 5 months ago

I attached ionic test app

https://drive.google.com/file/d/1NuQUr70adzjicfqRCtvZvJuCjqghfNtS/view?usp=sharing

christocracy commented 5 months ago

Your zipfile is messed up, it contains a weird __MACOS folder with an apparent duplicate of the folder ionictest.

Also, you added the node_modules folder to your zip file.

While attempting to run $ ionic cordova build ios:

Screenshot 2023-11-14 at 1 00 47 PM

Publish your demo app to a public Git repo instead and share the url here.

christocracy commented 5 months ago

Did you actually test your helloworld before sending it to me?

codingwithashu commented 5 months ago

I have tested getting same error

christocracy commented 5 months ago

Publish your hello-world to a public repository and post the link here.

codingwithashu commented 5 months ago

https://github.com/codingwithashu/myApp

christocracy commented 5 months ago
$ git clone ...
$ npm install
$ ionic cordova platform add ios
$ ionic cordova build ios
Screenshot 2023-11-14 at 1 00 47 PM
codingwithashu commented 5 months ago

Try to install - npm install @ionic/cordova-builders

christocracy commented 5 months ago

I'm not going to manually install anything on my end. Give me a simple hello-world app that works out of the box.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 days ago

This issue was closed because it has been inactive for 14 days since being marked as stale.