transistorsoft / cordova-background-geolocation-SampleApp

Cordova Background Geolocation Sample Application
https://www.transistorsoft.com/shop/products/cordova-background-geolocation
MIT License
120 stars 78 forks source link

Can not simulate ios app in El Capitan #99

Open endymion00 opened 6 years ago

endymion00 commented 6 years ago

I'm experiencing some issues trying to build the app for ios simulator. First it is needed to create a "www" folder inside project root folder (see: https://github.com/ionic-team/ionic-cli/issues/935) Also ios-deploy version and ios-sim version must be installed.

But the following command does not work: ionic cordova prepare ios Error message is "cordova is not a valid task".

How can I build the app?

ionic version: 2.2.1

ionic info result:

Your system information:

Cordova CLI: 8.0.0
Ionic Framework Version: 3.9.2
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 3.1.2
ios-deploy version: 1.9.2
ios-sim version: 6.1.2
OS: OS X El Capitan
Node Version: v8.9.1
Xcode version: Xcode 8.2.1 Build version 8C1002
christocracy commented 6 years ago

You're using an old version of Ionic 2.2.1. The latest version is 3.20.0.

endymion00 commented 6 years ago

Hi, you were. I updated to ionic 3. However another error occurs when executing ionic cordova run ios --emulator

Ld build/emulator/BG\ Geo.app/BG\ Geo normal x86_64 cd /Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios export IPHONEOS_DEPLOYMENT_TARGET=9.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/node_modules/.bin:/Users/al/.nvm/versions/node/v8.9.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/build/emulator -L/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/BG\ Geo/Plugins/cordova-plugin-cocoalumberjack -F/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/build/emulator -FBG\ Geo/Plugins/cordova-plugin-background-fetch -FBG\ Geo/Plugins/cordova-background-geolocation-lt -filelist /Users/al/Library/Developer/Xcode/DerivedData/BG_Geo-diqbbyfikmaqoxacjmahiirpavvo/Build/Intermediates/BG\ Geo.build/Debug-iphonesimulator/BG\ Geo.build/Objects-normal/x86_64/BG\ Geo.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/al/Library/Developer/Xcode/DerivedData/BG_Geo-diqbbyfikmaqoxacjmahiirpavvo/Build/Intermediates/BG\ Geo.build/Debug-iphonesimulator/BG\ Geo.build/Objects-normal/x86_64/BG\ Geo_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/al/Library/Developer/Xcode/DerivedData/BG_Geo-diqbbyfikmaqoxacjmahiirpavvo/Build/Intermediates/BG\ Geo.build/Debug-iphonesimulator/BG\ Geo.build/BG\ Geo.app.xcent /Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/build/emulator/libCordova.a -weak_framework AudioToolbox -lz -framework TSBackgroundFetch -lCocoaLumberjack -weak_framework SystemConfiguration -weak_framework AVFoundation -weak-lsqlite3 -weak-lz -framework TSLocationManager -Xlinker -dependency_info -Xlinker /Users/al/Library/Developer/Xcode/DerivedData/BG_Geo-diqbbyfikmaqoxacjmahiirpavvo/Build/Intermediates/BG\ Geo.build/Debug-iphonesimulator/BG\ Geo.build/Objects-normal/x86_64/BG\ Geo_dependency_info.dat -o /Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/build/emulator/BG\ Geo.app/BG\ Geo ld: framework not found FileProvider for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

BUILD FAILED

The following build commands failed: Ld build/emulator/BG\ Geo.app/BG\ Geo normal x86_64 (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,BG Geo.xcworkspace,-scheme,BG Geo,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/al/code/alfonso/cordova-background-geolocation-SampleApp/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova run ios --emulator (exit code 1).

christocracy commented 6 years ago

You’re not using latest XCode 9. always install latest XCode, the moment it’s released.

endymion00 commented 6 years ago

I see. I hoped to avoid that because currently i can't upgrade my OS due to other development requirements. Thank you very much. I'm looking forward to test this amazing project as soon as possible :)