-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to build app after installing plugin #88
Comments
Are you sure that’s the whole log? These are merely warnings which will go away by increasing the build target to 8.4: TSLocationManager_vers.o)) was built for newer iOS version (8.4) than being linked (8.0) |
That's not the full log, that is a lot of it. Let me post that as a text file |
You can silence those warnings by adding the following to
|
Above is the full log |
I googled and found that it was missing a plugin "nativescript-background-fetch", version installed in 1.1.1. I installed and ran it again. The error changed. Attached is the new log. |
The latest plugin includes fetch as a dependency |
Yes ok, just checked. So what is the issue then? How do I move forward? |
When in doubt remove the plugin and background-fetch. Remove the ios platform. Re-add the plugin. Do not add background-fetch separately. Re-add iOS platform and rebuild. You’re using XCode 9? |
This means you're not building with XCode 9. You must use latest XCode. |
Hi, I was able to build and run the project with xcode 9, thanks. But I am facing a different error now. The xcode logs are as below: Below is the error log: file:///app/tns_modules/tns-core-modules/ui/content-view/content-view.js:41:91: JS ERROR Error: More than one layout child inside a ContentView |
Is this error from my demo app or your app? ile:///app/tns_modules/tns-core-modules/ui/content-view/content-view.js:41:91: JS ERROR Error: More than one layout child inside a ContentView |
I assumes this is from my app, but the error here seems to be the below one: CoreData: annotation: Failed to load optimized model at path '/Users/user/Library/Developer/CoreSimulator/Devices/4081909F-26C0-4862-AD92-3F0A40F75E48/data/Containers/Bundle/Application/EF60A046-8346-4738-B3DF-B0923A4D7945/bluedragonapp.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo' |
The plugin is not involved with any kind of "Maps" component.
|
I see the same. I am using Xcode 9.1 typescript 2.53 I did not update for some time - 4 months, now i am updating and see the same error. I tried this IPHONEOS_DEPLOYMENT_TARGET = 8.4 tns build iOS I see below warnings warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/2CE7RKKEFVADY/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory ` Any idea why ? |
|
As usual thanks for your quick replies.. is this the way ? |
yes |
i tried.. do did not help. i also see this.. |
|
I also see this in the beginning,, why version 1.0.1 is getting downloaded ?
|
|
show me your app's |
Your |
Because first step was on the snippet above |
now i added
|
Package.json
|
|
still the same.. |
I see these same warnings. It doesn't prevent me from running the app. These warnings do need to be looked at. |
ok, let me try fixing other error related to my project |
yes, those errors/warnings did not have any impact.. now I am on all latest version of Nativescript, typescript, and nativescript-background-geolocation-lt. Works in Iphone X simulator as well. |
I am using the plugin to enable background location fetch even when the app is killed
Your Environment
tns info
):All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬──────────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 3.1.3 │ 3.2.1 │ Update available │
│ tns-core-modules │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-android │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-ios │ 3.2.0 │ 3.2.0 │ Up to date │
└──────────────────┴─────────────────┴────────────────┴──────────────────┘
Expected Behavior
Should be able to build the app with the plugins installed
Actual Behavior
The build fails after I install the plugin
Steps to Reproduce
Context
Trying to run the app after installing plugin
Debug logs
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSDatabaseQueue.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSTemplate.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSResultSet.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSGeofence.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(DatabaseQueue.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSGeofencesChangeEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSDatabase.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSScheduleEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSActivityChangeEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(GeofenceDAO.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSHttpService.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSLogFormatter.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSGeofenceManager.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSGeofenceEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSLog.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSSchedule.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSDatabasePool.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(BackgroundTaskManager.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(LocationDAO.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSDBLogger.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSHttpEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(LocationManager.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSProviderChangeEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSCallback.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSQueue.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(Settings.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(SOMotionDetector.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSReachability.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSScheduler.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSHeartbeatEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSLocation.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(LocationAuthorization.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSLocationManager.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSPowerSaveChangeEvent.o)) was built for newer iOS version (8.4) than being linked (8.0)
ld: warning: object file (/Users/vinaybrahmbhatt/Desktop/bluedragon_newux/heatcity/blue-dragon-app/node_modules/nativescript-background-geolocation-lt/platforms/ios/TSLocationManager.framework/TSLocationManager(TSLocationManager_vers.o)) was built for newer iOS version (8.4) than being linked (8.0)
** BUILD FAILED **
The following build commands failed:
Ld /Users/vinaybrahmbhatt/Library/Developer/Xcode/DerivedData/bluedragonapp-fvylfesdfegnalfaqraygowsaedk/Build/Intermediates/bluedragonapp.build/Debug-iphonesimulator/bluedragonapp.build/Objects-normal/i386/bluedragonapp normal i386
(1 failure)
The text was updated successfully, but these errors were encountered: