capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
180 stars 56 forks source link

iOS build error - Value of type 'CLLocation' has no member 'sourceInformation' #67

Closed asiermusa closed 2 years ago

asiermusa commented 2 years ago

Does somebody know what I'm doing wrong with Xcode build for iOS. Every time I get this error:

Captura de pantalla 2022-05-12 a las 12 49 46

I follow all the steps for iOS implementation, I change info.plist file and I ran required commands as npx cap sync/update.

For Android all the build works but not for iOS in my case.

Ionic info:

Ionic:

Ionic CLI : 6.17.0 (/Users/asiermusa/.nvm/versions/node/v15.2.1/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/vue 6.1.4

Capacitor:

Capacitor CLI : 3.5.1 @capacitor/android : 3.5.1 @capacitor/core : 3.5.1 @capacitor/ios : 3.5.1

Utility:

cordova-res (update available: 0.15.4) : 0.15.3 native-run : 1.5.0

System:

NodeJS : v15.2.1 (/Users/asiermusa/.nvm/versions/node/v15.2.1/bin/node) npm : 7.0.8 OS : macOS Big Sur

diachedelic commented 2 years ago

What version of Xcode are you using? I suspect it does not know about iOS 15.

asiermusa commented 2 years ago

My current Xcode Version 12.3 (12C33)

diachedelic commented 2 years ago

Xcode 12.3 only supports iOS versions up to 14. See if you are able to upgrade to Xcode 13.