I found this: https://github.com/NativeScript/nativescript-cli/commit/8512415dd105373823a2cb5e13ab8931010a6ad8
When saving on iOS, the app rebuilds every time.
iOS
"dependencies": {
"moment": "^2.18.1",
"nativescript-iqkeyboardmanager": "^1.1.0",
"nativescript-plugin-firebase": "^4.0.6",
"nativescript-pulltorefresh": "^2.0.1",
"nativescript-taptic-engine": "^2.0.3",
"nativescript-telerik-ui": "^3.0.4",
"nativescript-theme-core": "~1.0.2",
"tns-core-modules": "^3.2.0",
"tns-platform-declarations": "^3.0.0"
}
When I save any file the application rebuilds. Heres the output after saving an xml file, which used to take <3 seconds:
Executing before-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/before-prepare/nativescript-dev-typescript.js
Executing before-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/before-prepare/nativescript-plugin-firebase.js
Preparing project...
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/after-prepare/firebase-build-gradle.js
Configure firebase
Executing after-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/after-prepare/firebase-copy-google-services.js
Copy /Users/davecoffin/Develop/apps/nannyshifts/app/App_Resources/Android/google-services.json to /Users/davecoffin/Develop/apps/nannyshifts/platforms/android/google-services.json.
Executing after-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/after-prepare/nativescript-dev-android-snapshot.js
Executing after-prepare hook from /Users/davecoffin/Develop/apps/nannyshifts/hooks/after-prepare/nativescript-plugin-firebase.js
Building project...
Xcode build...
=== BUILD TARGET nannyshifts OF PROJECT nannyshifts WITH CONFIGURATION Debug ===
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/IQKeyboardManager'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/nanopb'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/IQKeyboardManager'
ld: warning: directory not found for option '-F/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Products/Debug-iphonesimulator/nanopb'
=== BUILD TARGET nannyshifts OF PROJECT nannyshifts WITH CONFIGURATION Debug ===
error: the following command failed with exit code 0 but produced no further output
Ld /Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Intermediates/nannyshifts.build/Debug-iphonesimulator/nannyshifts.build/Objects-normal/x86_64/nannyshifts normal x86_64
/* com.apple.actool.document.warnings */
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/(null)[2d][iTunesArtwork.png]: warning: The app icon set "AppIcon" has 12 unassigned children.
/* com.apple.actool.document.notices */
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][1x]: notice: 57x57 app icons only apply to iPhone apps targeting releases of iOS prior to 7.0
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][2x]: notice: 57x57@2x app icons only apply to iPhone apps targeting releases of iOS prior to 7.0
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][1x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][2x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][1x]: notice: 72x72 app icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][2x]: notice: 72x72@2x app icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][retina4][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][1x][landscape][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][2x][landscape][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][landscape][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][667h][2x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/* com.apple.actool.compilation-results */
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon29x29.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon57x57.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon20x20~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon20x20@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon29x29~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon29x29@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon40x40~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon40x40@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon50x50~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon50x50@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon72x72~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon72x72@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon76x76~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon76x76@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/AppIcon83.5x83.5@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-Portrait~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-Landscape~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-Portrait@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-Landscape@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/[email protected]
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-700-Portrait~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-700-Landscape~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-700-Portrait@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/LaunchImage-700-Landscape@2x~ipad.png
/Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/build/emulator/nannyshifts.app/Assets.car
/Users/davecoffin/Library/Developer/Xcode/DerivedData/nannyshifts-cmmjkjwwvaxbkkfnntywjdrxvcbx/Build/Intermediates/nannyshifts.build/Debug-iphonesimulator/nannyshifts.build/assetcatalog_generated_info.plist
=== BUILD TARGET nannyshifts OF PROJECT nannyshifts WITH CONFIGURATION Debug ===
while processing /Users/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/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/davecoffin/Develop/apps/nannyshifts/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
Project successfully built.
Installing...
Successfully installed on device with identifier '26B9D66F-99F8-41F2-87C3-3D7698590426'.
Hey @davecoffin ,
Can you try tns run ios --log trace > out.txt , change an xml file and send the generated out.txt file once the build finishes, so we'll be able to investigate it on our side?
Hey there, I discovered the cause of this. I created app icons using this:
http://nsimage.brosteins.com/
It spits out a bunch of images to use for icons for iOS. In the log above theres a bunch of warnings like /Users/davecoffin/Develop/apps/nannyshifts/platforms/ios/nannyshifts/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][1x]: notice: 57x57 app icons only apply to iPhone apps targeting releases of iOS prior to 7.0.
When I only added images that match exactly what is in the icon folder by default, it syncs correctly.
I'm also noticing some odd behaviors that correlate to the same issues Dave is facing. The livesync operation seems to get hung up on the active iOS instance of the application.
The terminal log produces this:
=== BUILD TARGET nativescript OF PROJECT nativescript WITH CONFIGURATION Debug ===
while processing /Users/sean/Documents/maestro/loop/nativescript/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/sean/Documents/maestro/loop/nativescript/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 while processing /Users/sean/Documents/maestro/loop/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o)/Users/sean/Documents/maestro/loop/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
:
warning: warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/UIKit-1V5UHAPTOD24G.pcm/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Foundation-3DFYNEBRQSXST.pcm: : No such file or directoryNo 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/sean/Documents/maestro/loop/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Dispatch-2LX9MWM6UEPQW.pcmwhile processing : /Users/sean/Documents/maestro/loop/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o)No such file or directory:
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
while processing /Users/sean/Documents/maestro/loop/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directorywhile processing
/Users/sean/Documents/maestro/loop/nativescript/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/sean/Documents/maestro/loop/nativescript/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/sean/Documents/maestro/loop/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
Project successfully built.
Note: At this point the application hasn't re-deployed to the simulator. Also notice all the "No such file or directory" logs in both my log and Dave's above.
Now the interesting thing is it will just sit here, unless in the simulator your kill the active instance of the app.
Then the application will build a corrupted bundle with a ton of non-errors.
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Installing...
11:20:13 AM - File change detected. Starting incremental compilation...
11:20:17 AM - Compilation complete. Watching for file changes.
11:23:27 AM - File change detected. Starting incremental compilation...
1 require("application");
~~~~~~~
app/vendor-platform.android.ts(1,1): error TS2304: Cannot find name 'require'.
2 if (!global["__snapshot"]) {
~~~~~~
app/vendor-platform.android.ts(2,6): error TS2304: Cannot find name 'global'.
7 require("ui/frame");
~~~~~~~
app/vendor-platform.android.ts(7,5): error TS2304: Cannot find name 'require'.
8 require("ui/frame/activity");
~~~~~~~
app/vendor-platform.android.ts(8,5): error TS2304: Cannot find name 'require'.
1 require("./vendor-platform");
~~~~~~~
app/vendor.ts(1,1): error TS2304: Cannot find name 'require'.
3 require("reflect-metadata");
~~~~~~~
app/vendor.ts(3,1): error TS2304: Cannot find name 'require'.
4 require("@angular/platform-browser");
~~~~~~~
app/vendor.ts(4,1): error TS2304: Cannot find name 'require'.
5 require("@angular/core");
~~~~~~~
app/vendor.ts(5,1): error TS2304: Cannot find name 'require'.
6 require("@angular/common");
~~~~~~~
app/vendor.ts(6,1): error TS2304: Cannot find name 'require'.
7 require("@angular/forms");
~~~~~~~
app/vendor.ts(7,1): error TS2304: Cannot find name 'require'.
8 require("@angular/http");
~~~~~~~
app/vendor.ts(8,1): error TS2304: Cannot find name 'require'.
9 require("@angular/router");
~~~~~~~
app/vendor.ts(9,1): error TS2304: Cannot find name 'require'.
11 require("nativescript-angular/platform-static");
~~~~~~~
app/vendor.ts(11,1): error TS2304: Cannot find name 'require'.
12 require("nativescript-angular/forms");
~~~~~~~
app/vendor.ts(12,1): error TS2304: Cannot find name 'require'.
13 require("nativescript-angular/router");
~~~~~~~
app/vendor.ts(13,1): error TS2304: Cannot find name 'require'.
11:23:27 AM - Compilation complete. Watching for file changes.
11:23:28 AM - File change detected. Starting incremental compilation...
11:23:36 AM - Compilation complete. Watching for file changes.
11:23:37 AM - File change detected. Starting incremental compilation...
11:23:45 AM - Compilation complete. Watching for file changes.
Skipping prepare.
Installing...
Successfully installed on device with identifier '93C6B387-6286-4809-B24B-D27723D50C19'.
Successfully installed on device with identifier '93C6B387-6286-4809-B24B-D27723D50C19'.
Successfully transferred all files.
Refreshing application...
Successfully transferred all files.
Refreshing application...
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Executing before-watch hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-watch/nativescript-dev-sass.js
Found peer node-sass
Executing before-watch hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-watch/nativescript-dev-typescript.js
Found peer TypeScript 2.2.2
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-android-snapshot.js
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-sass.js
Successfully transferred all files.
Refreshing application...
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Oct 12 11:26:05 Seans-MacBook-Pro com.apple.CoreSimulator.SimDevice.93C6B387-6286-4809-B24B-D27723D50C19[9474] (UIKitApplication:com.myloopaccount.Loop[0x1d36][9501][36535]): Service exited due to signal: Illegal instruction: 4 sent by exc handler[0]
11:26:06 AM - Compilation complete. Watching for file changes.
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-android-snapshot.js
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-sass.js
Successfully transferred all files.
Refreshing application...
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Oct 12 11:26:15 Seans-MacBook-Pro com.apple.CoreSimulator.SimDevice.93C6B387-6286-4809-B24B-D27723D50C19[9474] (UIKitApplication:com.myloopaccount.Loop[0x57d1][9501][36548]): Service exited due to signal: Illegal instruction: 4 sent by exc handler[0]
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...
Preparing project...
Unable to apply changes for device: 93C6B387-6286-4809-B24B-D27723D50C19. Error is: rm: could not remove file (code ENOENT): /Users/sean/Documents/maestro/loop/nativescript/platforms/ios/nativescript/app/app/modules/+dashboard-user/dashboard-user.routes.ts.
Executing after-watch hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-watch/nativescript-dev-sass.js
Stopping sass watch
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-android-snapshot.js
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-sass.js
Successfully transferred all files.
Refreshing application...
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Oct 12 11:26:33 Seans-MacBook-Pro com.apple.CoreSimulator.SimDevice.93C6B387-6286-4809-B24B-D27723D50C19[9474] (UIKitApplication:com.myloopaccount.Loop[0xdab9][9501][36567]): Service exited due to signal: Illegal instruction: 4 sent by exc handler[0]
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-android-snapshot.js
Executing after-prepare hook from /Users/sean/Documents/maestro/loop/nativescript/hooks/after-prepare/nativescript-dev-sass.js
Successfully transferred all files.
Refreshing application...
Successfully synced application com.myloopaccount.Loop on device 93C6B387-6286-4809-B24B-D27723D50C19.
Oct 12 11:27:23 Seans-MacBook-Pro com.apple.CoreSimulator.SimDevice.93C6B387-6286-4809-B24B-D27723D50C19[9474] (UIKitApplication:com.myloopaccount.Loop[0xd632][9501][36585]): Service exited due to signal: Illegal instruction: 4 sent by exc handler[0]
E
And finally the application will open and crash.
This also occasionally happens on a fresh build run (with the app already running on the simulator).
Node: v6.11.4
TNS: 3.2.1
I'm curious about this issue as well, especially that you mentioned the app icons. I had run into this issue a day ago, and posted my question on the forum here: https://discourse.nativescript.org/t/i-lost-the-ability-to-incrementally-build-and-n-keeps-doing-full-builds/4265 (...with not much response success so far...)
I'm somewhat puzzled as to why would I be restricted using the "preconfigured" size app icons? I think I got rid of the iPad icons because I only wanted my app to run on the phone. Then I also got rid of the 'LaunchImages' folder since I was building for iOS 9+ and read that 'LaunchImages' were only needed for iOS 7 or earlier.
These two actions (app icons and LaunchImages) unleashed all sorts of build hell-challenges. Like the errors and warnings you posted above.
I remember at some point I've tried re-adding the missing iPad icons. When I brought the project into Xcode, I noticed that some iPad icons were missing (like the '20's) and added them back. That also generated errors and warning and my project was kept rebuilding even if I changed a comma. That reinstalled my hole app constantly, including wiping out my local storage data, so I had to keep starting my app as a 'new user' all the time - drove me insane.
Anyhow. Will try your suggestion to adding back the EXACT size app icons and see what happens. I hope I won't have to create a zillion LaunchImages though, since the storyboard ones are the ones I'm using (and need).
It seems that was the issue. I had changed (added/removed) certain app icons. Even though I have updated the 'Contents.json' file correctly, my project was kept rebuilding until I added the original sized app icons that came with {N}.
I'm still getting the bunch of warnings about 'no such file or directory', but at least my project doesn't rebuild every time I add a comma.
Preparing project...
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Project successfully prepared (iOS)
Building project...
Xcode build...
=== BUILD TARGET spacer OF PROJECT spacer WITH CONFIGURATION Debug ===
/* com.apple.actool.document.warnings */
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/spacer/Resources/Assets.xcassets:./AppIcon.appiconset/[][ios-marketing][][][][1x][2d][icon-1024.png]: warning: The app icon set "AppIcon" has an unassigned child.
/* com.apple.actool.compilation-results */
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon29x29.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/[email protected]
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/[email protected]
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/[email protected]
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/[email protected]
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/[email protected]
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/[email protected]
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon29x29~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon29x29@2x~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon40x40~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon40x40@2x~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon76x76~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon76x76@2x~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/AppIcon83.5x83.5@2x~ipad.png
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/emulator/spacer.app/Assets.car
/Users/ADMIN/Development/NativeScript/spacer/platforms/ios/build/spacer.build/Debug-iphonesimulator/spacer.build/assetcatalog_generated_info.plist
=== BUILD TARGET spacer OF PROJECT spacer WITH CONFIGURATION Debug ===
while processing /Users/ADMIN/Development/NativeScript/spacer/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 librariesshould never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Users/ADMIN/Development/NativeScript/spacer/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Darwin-38I6DLZ5IH61J.pcm: No such file ordirectory
while processing /Users/ADMIN/Development/NativeScript/spacer/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/ADMIN/Development/NativeScript/spacer/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/ADMIN/Development/NativeScript/spacer/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/ADMIN/Development/NativeScript/spacer/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 librariesshould never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Users/ADMIN/Development/NativeScript/spacer/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Darwin-38I6DLZ5IH61J.pcm: No such file ordirectory
while processing /Users/ADMIN/Development/NativeScript/spacer/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/ADMIN/Development/NativeScript/spacer/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/ADMIN/Development/NativeScript/spacer/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
Project successfully built.
Installing...
Successfully installed on device with identifier '...'.
Successfully transferred all files.
Refreshing application...
Successfully synced application on device ...
CLI: 3.4.1
OS X 10.11.6
"dependencies": {
"nativescript-theme-core": "~1.0.2",
"tinycolor2": "^1.4.1",
"tns-core-modules": "^3.4.0"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11"
}
any updates here? i used nativescript sidekick tool to update my app icon n splash screen n since then i get the issue for both IOS and android
For some reason, i'm not getting the issue again neither on android nor ios..
here's what i did:
1- i cleaned all the resources n regenerated both the app icon n the splash screen using sidekick.
2- npm uninstall -g nativescript, npm cache clean --force, npm i -g nativescript@next, remove node_modules and hooks, npm i...
3- Pay attention to console messages by last step ( u may have an outdated files like webpack.config.js)
4- add platforms
that's what fixed the problem for me
@mhmo91 @davecoffin apart from generating the proper icons from SideKick the CLI now provides a command for generating app icons and splashes.
Generate app icons
tns resources generate icons <Path to image>
Generate splash screens
tns resources generate splashes <Path to image> [--background <Color>]
Closing tas the issue is not reproducible when using the properly generated icons.