Skip to content
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

Open
SanchitSahu opened this issue Oct 9, 2017 · 32 comments
Open

Not able to build app after installing plugin #88

SanchitSahu opened this issue Oct 9, 2017 · 32 comments

Comments

@SanchitSahu
Copy link

I am using the plugin to enable background location fetch even when the app is killed

Your Environment

  • Plugin version: Installed using "tns plugin add ..", not sure of the version
  • Platform: iOS
  • OS version: 10.12.5
  • Nativescript version (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 │
    └──────────────────┴─────────────────┴────────────────┴──────────────────┘
  • Plugin config

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

  1. Add plugin to project using "tns plugin add nativescript-background-geolocation-lt"
  2. npm install
  3. tns run ios

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)

@christocracy
Copy link
Member

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)

@SanchitSolulab
Copy link

That's not the full log, that is a lot of it. Let me post that as a text file

@christocracy
Copy link
Member

christocracy commented Oct 9, 2017

You can silence those warnings by adding the following to build.xcconfig

/app/App_Resources/iOS/build.xcconfig

IPHONEOS_DEPLOYMENT_TARGET = 8.4

@SanchitSahu
Copy link
Author

TNS_logs.txt

@SanchitSahu
Copy link
Author

Above is the full log

@SanchitSahu
Copy link
Author

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.
TNS_logs1.txt

@christocracy
Copy link
Member

The latest plugin includes fetch as a dependency

@SanchitSahu
Copy link
Author

Yes ok, just checked. So what is the issue then? How do I move forward?

@christocracy
Copy link
Member

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?

@christocracy
Copy link
Member

ld: framework not found FileProvider for architecture i386

This means you're not building with XCode 9. You must use latest XCode.

@SanchitSahu
Copy link
Author

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:
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'
*** Fatal JavaScript exception - application has been terminated. ***
Native stack trace:
2017-10-10 16:42:19.866053+0530 bluedragonapp[15598:171599] 1 0x116acce3b NativeScript::FFICallbackNativeScript::ObjCMethodCallback::ffiClosureCallback(ffi_cif, void, void*, void)
1 0x116acce3b NativeScript::FFICallbackNativeScript::ObjCMethodCallback::ffiClosureCallback(ffi_cif, void, void*, void)
2017-10-10 16:42:19.866613+0530 bluedragonapp[15598:171599] 2 0x1171702be ffi_closure_unix64_inner
2 0x1171702be ffi_closure_unix64_inner
2017-10-10 16:42:19.867461+0530 bluedragonapp[15598:171599] 3 0x117170c02 ffi_closure_unix64
3 0x117170c02 ffi_closure_unix64
2017-10-10 16:42:19.868081+0530 bluedragonapp[15598:171599] 4 0x1143634ba -[CALayer layoutSublayers]
4 0x1143634ba -[CALayer layoutSublayers]
2017-10-10 16:42:19.868649+0530 bluedragonapp[15598:171599] 5 0x1143675a9 CA::Layer::layout_if_needed(CA::Transaction*)
5 0x1143675a9 CA::Layer::layout_if_needed(CA::Transaction*)
2017-10-10 16:42:19.871000+0530 bluedragonapp[15598:171599] 6 0x1149fae5f -[UIView(Hierarchy) layoutBelowIfNeeded]
6 0x1149fae5f -[UIView(Hierarchy) layoutBelowIfNeeded]
2017-10-10 16:42:19.871461+0530 bluedragonapp[15598:171599] 7 0x117170a5d ffi_call_unix64
7 0x117170a5d ffi_call_unix64
2017-10-10 16:42:19.871801+0530 bluedragonapp[15598:171599] 8 0x138470fd0
8 0x138470fd0
JavaScript stack trace:
1 @file:///app/tns_modules/tns-core-modules/ui/content-view/content-view.js:41:91
2 _eachLayoutView@file:///app/tns_modules/tns-core-modules/ui/core/view/view-common.js:697:24
3 @file:///app/tns_modules/tns-core-modules/ui/proxy-view-container/proxy-view-container.js:45:35
4 eachChildView@file:///app/tns_modules/tns-core-modules/ui/layouts/layout-base-common.js:125:34
5 _eachLayoutView@file:///app/tns_modules/tns-core-modules/ui/proxy-view-container/proxy-view-container.js:43:27
6 get@file:///app/tns_modules/tns-core-modules/ui/content-view/content-view.js:35:46
7 onMeasure@file:///app/tns_modules/tns-core-modules/ui/page/page.js:392:64
8 measure@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:57:27
9 measureChild@file:///app/tns_modules/tns-core-modules/ui/core/view/view-common.js:636:26
10 measurePage@file:///app/tns_modules/tns-core-modules/ui/frame/frame.js:239:48
11 onMeasure@file:///app/tns_modules/tns-core-modules/ui/frame/frame.js:223:47
12 measure@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:57:27
13 _layoutRootView@file:///app/tns_modules/tns-core-modules/ui/utils.js:40:25
14 layoutSubviews@file:///app/tns_modules/tns-core-modules/application/application.js:35:40
15 layoutIfNeeded@[native code]
16 remeasureFrame@file:///app/tns_modules/tns-core-modules/ui/frame/frame.js:280:34
17 viewWillAppear@file:///app/tns_modules/tns-core-modules/ui/page/page.js:135:37
18 UIApplicationMain@[native code]
19 start@file:///app/tns_modules/tns-core-modules/application/application.js:212:26
20 bootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:72:28
21 bootstrapModule@file:///app/tns_modules/nativescript-angular/platform-common.js:60:26
22 anonymous@file:///app/main.js:34:57
23 evaluate@[native code]
24 moduleEvaluation@[native code]
25 @[native code]
26 promiseReactionJob@[native code]
JavaScript error:
2017-10-10 16:42:19.873103+0530 bluedragonapp[15598:171599] 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

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

@christocracy
Copy link
Member

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

@SanchitSahu
Copy link
Author

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'

@christocracy
Copy link
Member

The plugin is not involved with any kind of "Maps" component.

GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'

@narayananl23
Copy link

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
I also tried
tns platform remove ios
tns plugin remove nativescript-background-geolocation-lt
tns plugin add nativescript-background-geolocation-lt
tns platform add ios

tns build iOS

I see below warnings
`
=== BUILD TARGET items OF PROJECT items WITH CONFIGURATION Debug ===
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
while processing /Users/geet5412/projects/items/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
while processing /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o):
warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/2CE7RKKEFVADY/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o):
warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/2CE7RKKEFVADY/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
while processing /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o):
warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/1UU9N3QCCTJT2/Foundation-3DFYNEBRQSXST.pcmwhile processing : /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o)No such file or directory:

warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/2CE7RKKEFVADY/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
while processing /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o):
while processing warning: /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o)/var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/2CE7RKKEFVADY/Dispatch-2LX9MWM6UEPQW.pcm:
: warning: No such file or directory/var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/1UU9N3QCCTJT2/UIKit-1V5UHAPTOD24G.pcm
: No such file or directory
while processing /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o):
warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/1UU9N3QCCTJT2/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
while processing /Users/geet5412/projects/items/node_modules/nativescript-background-fetch/platforms/ios/TSBackgroundFetch.framework/TSBackgroundFetch(TSBackgroundFetch.o):
warning: /var/folders/l5/vfqbmp114391tss3qd37j78m0000gn/C/org.llvm.clang.chris/ModuleCache/1UU9N3QCCTJT2/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
Project successfully built.

`

Any idea why ?

@christocracy
Copy link
Member

  • destroy your ios platform
  • re-add
  • re-build

@narayananl23
Copy link

As usual thanks for your quick replies.. is this the way ?
tns platform remove ios
tns platform add ios

@christocracy
Copy link
Member

yes

@narayananl23
Copy link

i tried.. do did not help.

i also see this..
[!] Please close any current Xcode sessions and use items.xcworkspace for this project from now on.

@christocracy
Copy link
Member

$ tns plugin remove nativescript-background-geolocation-lt
$ tns info
$ tns plugin

@narayananl23
Copy link

I also see this in the beginning,, why version 1.0.1 is getting downloaded ?

Downloading dependencies
Installing CocoaLumberjack (3.0.0)
Installing IQActionSheetPickerView (1.0.4)
Installing nativescript-background-fetch (1.0.1)
Installing nativescript-background-geolocation-lt (1.0.1)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `items.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 4 total pods installed.
Project successfully prepared (ios)
Executing after-prepare hook from /Users/geet5412/projects/items/hooks/after-prepare/nativescript-dev-android-snapshot.js
Building project...
Xcode build...

=== BUILD TARGET items OF PROJECT items WITH CONFIGURATION Debug ===
ld: warning: directory not found for option '-F/Users/geet5412/Library/Developer/Xcode/DerivedData/items-ehbjjywfeheoomafzfdheledxkxg/Build/Products/Debug-iphonesimulator/CocoaLumberjack'
ld: warning: directory not found for option '-F/Users/geet5412/Library/Developer/Xcode/DerivedData/items-ehbjjywfeheoomafzfdheledxkxg/Build/Products/Debug-iphonesimulator/IQActionSheetPickerView'
ld: warning: directory not found for option '-F/Users/geet5412/Library/Developer/Xcode/DerivedData/items-ehbjjywfeheoomafzfdheledxkxg/Build/Products/Debug-iphonesimulator/CocoaLumberjack'
ld: warning: directory not found for option '-

@narayananl23
Copy link

 tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬──────────────────┐
│ Component        │ Current version │ Latest version │ Information      │
│ nativescript     │ 3.2.1           │ 3.3.0          │ Update available │
│ tns-core-modules │ 3.2.0           │ 3.3.0          │ Update available │
│ tns-android      │                 │ 3.3.0          │ Not installed    │
│ tns-ios          │ 3.2.0           │ 3.3.0          │ Update available │
└──────────────────┴─────────────────┴────────────────┴──────────────────┘
geetha-mba:items geet5412$ tns plugin
Dependencies:
┌─────────────────────────────┬──────────────────┐
│ Plugin                      │ Version          │
│ moment                      │ ^2.19.1          │
│ moment-timezone             │ ^0.5.13          │
│ nativescript-camera         │ 3.1.2            │
│ nativescript-cardview       │ ^2.0.3           │
│ nativescript-drop-down      │ ^3.2.0           │
│ nativescript-fonticon       │ ^1.1.1           │
│ nativescript-pro-ui         │ ^3.2.0           │
│ nativescript-sqlite         │ ^1.1.11          │
│ nativescript-statusbar      │ ^3.0.1           │
│ nativescript-theme-core     │ ^1.0.4           │
│ nativescript-timedatepicker │ ^1.2.0           │
│ tns-core-modules            │ ^3.2.0           │
│ tns-core-modules-snapshot   │ 2.5.2-5.5.372.32 │
└─────────────────────────────┴──────────────────┘
Dev Dependencies:
┌───────────────────────────────────┬─────────┐
│ Plugin                            │ Version │
│ babel-traverse                    │ 6.20.0  │
│ babel-types                       │ 6.20.0  │
│ babylon                           │ 6.14.1  │
│ lazy                              │ 1.0.11  │
│ nativescript-dev-android-snapshot │ ^0.*.*  │
│ nativescript-dev-typescript       │ ^0.5.1  │
│ typescript                        │ ^2.5.3  │
└───────────────────────────────────┴─────────┘
NOTE:
If you want to check the dependencies of installed plugin use npm view <pluginName> grep dependencies
If you want to check the dev dependencies of installed plugin use npm view <pluginName> grep devDependencies

@christocracy
Copy link
Member

show me your app's package.json

@christocracy
Copy link
Member

Your $ tns plugin shows the plugin is not added to your project.

@narayananl23
Copy link

Because first step was on the snippet above
tns plugin remove nativescript-background-geolocation-lt

@narayananl23
Copy link

now i added

mba:items geet5412$ tns plugin
Dependencies:
┌────────────────────────────────────────┬──────────────────┐
│ Plugin                                 │ Version          │
│ moment                                 │ ^2.19.1          │
│ moment-timezone                        │ ^0.5.13          │
│ nativescript-background-geolocation-lt │ ^1.7.0           │
│ nativescript-camera                    │ 3.1.2            │
│ nativescript-cardview                  │ ^2.0.3           │
│ nativescript-drop-down                 │ ^3.2.0           │
│ nativescript-fonticon                  │ ^1.1.1           │
│ nativescript-pro-ui                    │ ^3.2.0           │
│ nativescript-sqlite                    │ ^1.1.11          │
│ nativescript-statusbar                 │ ^3.0.1           │
│ nativescript-theme-core                │ ^1.0.4           │
│ nativescript-timedatepicker            │ ^1.2.0           │
│ tns-core-modules                       │ ^3.2.0           │
│ tns-core-modules-snapshot              │ 2.5.2-5.5.372.32 │
└────────────────────────────────────────┴──────────────────┘
Dev Dependencies:
┌───────────────────────────────────┬─────────┐
│ Plugin                            │ Version │
│ babel-traverse                    │ 6.20.0  │
│ babel-types                       │ 6.20.0  │
│ babylon                           │ 6.14.1  │
│ lazy                              │ 1.0.11  │
│ nativescript-dev-android-snapshot │ ^0.*.*  │
│ nativescript-dev-typescript       │ ^0.5.1  │
│ typescript                        │ ^2.5.3  │
└───────────────────────────────────┴─────────┘
NOTE:
If you want to check the dependencies of installed plugin use npm view <pluginName> grep dependencies
If you want to check the dev dependencies of installed plugin use npm view <pluginName> grep devDependencies

@narayananl23
Copy link

Package.json

{
  "name": "name",
  "version": "1.0.0",
  "description": "101 tracker Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "com.transistorsoft.backgroundgeolocation.nativescript",
    "tns-ios": {
      "version": "3.2.0"
    }
  },
  "dependencies": {
    "moment": "^2.19.1",
    "moment-timezone": "^0.5.13",
    "nativescript-background-geolocation-lt": "^1.7.0",
    "nativescript-camera": "3.1.2",
    "nativescript-cardview": "^2.0.3",
    "nativescript-drop-down": "^3.2.0",
    "nativescript-fonticon": "^1.1.1",
    "nativescript-pro-ui": "^3.2.0",
    "nativescript-sqlite": "^1.1.11",
    "nativescript-statusbar": "^3.0.1",
    "nativescript-theme-core": "^1.0.4",
    "nativescript-timedatepicker": "^1.2.0",
    "tns-core-modules": "^3.2.0",
    "tns-core-modules-snapshot": "2.5.2-5.5.372.32"
  },
  "devDependencies": {
    "babel-traverse": "6.20.0",
    "babel-types": "6.20.0",
    "babylon": "6.14.1",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*",
    "nativescript-dev-typescript": "^0.5.1",
    "typescript": "^2.5.3"
  }
}

@christocracy
Copy link
Member

$ tns platform remove ios
$ tns platform add ios
$ tns build ios

@narayananl23
Copy link

still the same..

@christocracy
Copy link
Member

I see these same warnings. It doesn't prevent me from running the app.

These warnings do need to be looked at.

@narayananl23
Copy link

ok, let me try fixing other error related to my project

@narayananl23
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants