cancel
Showing results for 
Search instead for 
Did you mean: 

MDK Debug fails to start

AminAlmarsafy
Explorer
0 Kudos
460

I originally had this issue but the answer allowed me to go beyond that error.

But now when I start the app the iOS Emulator loads and once I start the app it crashes. Not that this iOS Client was Archived and distributed and works on iPhones.

Please Advise on how can I proceed with debugging rules.

Below is what came in the output tab in VS Code

Project successfully prepared (ios)

Building project...

Xcode build...

(node:22933) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

2022-06-29 11:04:14.822 xcodebuild[23187:5091079] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-29 11:04:14.824 xcodebuild[23187:5091079] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

error: the following command failed with exit code 0 but produced no further output
CompileC /Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/MaterialComponents.build/Objects-normal/x86_64/MDCInkView.o /Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take\ 5/platforms/ios/Pods/MaterialComponents/components/Ink/src/MDCInkView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'MaterialComponents' from project 'Pods')

error: the following command failed with exit code 0 but produced no further output
CompileC /Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/MaterialComponents.build/Objects-normal/x86_64/MDCInkTouchController.o /Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take\ 5/platforms/ios/Pods/MaterialComponents/components/Ink/src/MDCInkTouchController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'MaterialComponents' from project 'Pods')

/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Pods/MaterialComponents/components/Ink/src/MDCInkGestureRecognizer.m:21:17: warning: implementing deprecated class [-Wdeprecated-implementations]
@implementation MDCInkGestureRecognizer {
                ^
In file included from /Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Pods/MaterialComponents/components/Ink/src/MDCInkGestureRecognizer.m:15:
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Pods/MaterialComponents/components/Ink/src/MDCInkGestureRecognizer.h:24:77: note: class declared here
__deprecated_msg("Please use MDCRippleTouchController instead.") @interface MDCInkGestureRecognizer
                                                                            ^
1 warning generated.

2022-06-29 11:05:35.677 ibtoold[23677:5094474] DEBUG: Added to environment: {
    TMPDIR = "/var/folders/5h/phw9zg0960qfmx65bh03fqkr0000gn/T/296CE11D-73A9-4D88-974E-AF243423E41E";
}
/* com.apple.actool.document.warnings */
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/Resources/Assets.xcassets:./LaunchImage.launchimage: warning: Launch images are deprecated in iOS 13.0. Use a launch storyboard or XIB instead.
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/Resources/Assets.xcassets:./AppIcon.appiconset/(null)[2d][icon-1024.png]: warning: The app icon set "AppIcon" has 23 unassigned children.
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/Resources/Assets.xcassets:./AppIcon.appiconset/(null)[2d][icon-1024.png]: warning: The app icon set "AppIcon" has 23 unassigned children.
/* com.apple.actool.document.notices */
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x][][][]: notice: 76x76@1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0.
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/Take5/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.
/* com.apple.actool.compilation-results */
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/AppIcon60x60@2x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/AppIcon76x76@2x~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/Assets.car
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-568h@2x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-700-568h@2x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-700-Landscape@2x~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-700-Landscape~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-700-Portrait@2x~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-700-Portrait~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-700@2x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-800-667h@2x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-800-Landscape-736h@3x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-800-Portrait-736h@3x.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-Landscape@2x~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-Landscape~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-Portrait@2x~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage-Portrait~ipad.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage.png
/Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app/LaunchImage@2x.png
/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Intermediates.noindex/Take5.build/Debug-iphonesimulator/Take5.build/assetcatalog_generated_info.plist

warning: 'UILaunchImages' has been deprecated, use launch storyboards instead. (in target 'Take5' from project 'Take5')

note: Using new build system
note: Using codesigning identity override: 
note: Planning
note: Build preparation complete
note: Building targets in dependency order
note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Intermediates.noindex/Take5.build/Debug-iphonesimulator/Take5.build/Script-FE6FAB938D78A1B3EC59F9D8.sh'

note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Products/Debug-iphonesimulator/Take5.app'

note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Products/Debug-iphonesimulator/SSZipArchive/SSZipArchive.framework'

note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Products/Debug-iphonesimulator/Pods_Take5.framework'

note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Products/Debug-iphonesimulator/MDFTextAccessibility/MDFTextAccessibility.framework'

note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Products/Debug-iphonesimulator/MDFInternationalization/MDFInternationalization.framework'

note: Removed stale file '/Users/amin/Library/Developer/Xcode/DerivedData/Take5-efakqkytivyfurdtbrojdzvclrtz/Build/Products/Debug-iphonesimulator/MaterialComponents/MaterialComponents.framework'


Project successfully built.

Build time: 108.485 s.

The build result is located at: /Users/amin/Downloads/MDKCLNT02P_2-70006754/MDKClient_SDK/Take 5/platforms/ios/build/Debug-iphonesimulator/Take5.app

Installing on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA...

Successfully installed on device with identifier 'AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA'.

Successfully transferred all files on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA.

Restarting application on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA...

'--chrome' is the default behavior. Use --inspector to debug iOS applications using the Safari Web Inspector.


Setting up debugger proxy...
Press Ctrl + C to terminate, or disconnect.


Opened localhost 41000

To start debugging, open the following URL in Chrome:
devtools://devtools/bundled/inspector.html?ws=localhost:41000


Successfully synced application au.com.wilmar.take5.test on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA.

Successfully transferred default.js on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA.

Successfully transferred mbundle.js on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA.

Restarting application on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA...

[NSDebugAdapter] Ready to attach to application on 41000

'--chrome' is the default behavior. Use --inspector to debug iOS applications using the Safari Web Inspector.
Opened localhost 41000

To start debugging, open the following URL in Chrome:
devtools://devtools/bundled/inspector.html?ws=localhost:41000


Successfully synced application au.com.wilmar.take5.test on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA.

[NSDebugAdapter] Ready to attach to application on 41000

CONSOLE LOG: Loading inspector modules...

CONSOLE LOG: Finished loading inspector modules.

***** Fatal JavaScript exception - application has been terminated. *****

NativeScript encountered a fatal error: Uncaught TypeError: SecureStoreManager.sharedInstance.getStringWithKeyError is not a function
at
getString(file: app/webpack:/take_5/node_modules/mdk-sap/Foundation/Common/SecureStore/SecureStoreManager.ios.ts:27:50)
at getString(file: app/webpack:/take_5/node_modules/mdk-core/storage/SecureStore.js:21:0)
at moveSecureData(file: app/webpack:/take_5/node_modules/mdk-core/utils/AppSettingsManager.js:118:44)
at instance(file: app/webpack:/take_5/node_modules/mdk-core/utils/AppSettingsManager.js:17:0)
at setAppSetting(file: app/webpack:/take_5/node_modules/mdk-core/storage/ClientSettings.js:1207:12)
at setDebugSettings(file: app/webpack:/take_5/node_modules/mdk-core/storage/ClientSettings.js:609:0)
at ./app/app.ts(file:///app/bundle.js:147:81)
at __webpack_require__(file: app/webpack:/take_5/webpack/bootstrap:19:0)
at __webpack_exec__(file:///app/bundle.js:2920:39)
at (file:///app/bundle.js:2921:299)
at __webpack_require__.X(file: app/webpack:/take_5/webpack/runtime/startup entrypoint:6:0)
at (file:///app/bundle.js:2921:47)
at (file:///app/bundle.js:2926:3)
at require(:1:137)

(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: SecureStoreManager.sharedInstance.getStringWithKeyError is not a function
at
getString(file: app/webpack:/take_5/node_modules/mdk-sap/Foundation/Common/SecureStore/SecureStoreManager.ios.ts:27:50)
at getString(file: app/webpack:/take_5/node_modules/mdk-core/storage/SecureStore.js:21:0)
at moveSecureData(file: app/webpack:/take_5/node_modules/mdk-core/utils/AppSettingsManager.js:118:44)
at instance(file: app/webpack:/take_5/node_modules/mdk-core/utils/AppSettingsManager.js:17:0)
at setAppSetting(file: app/webpack:/take_5/node_modules/mdk-core/storage/ClientSettings.js:1207:12)
at setDebugSettings(file: app/webpack:/take_5/node_modules/mdk-core/storage/ClientSettings.js:609:0)
at ./app/app.ts(file:///app/bundle.js:147:81)
at __webpack_require__(file: app/webpack:/take_5/webpack/bootstrap:19:0)
at __webpack_exec__(file:///app/bundle.js:2920:39)
at (file:///app/bundle.js:2921:299)
at __webpack_require__.X(file: app/webpack:/take_5/webpack/runtime/startup entrypoint:6:0)
at (file:///app/bundle.js:2921:47)
at (file:///app/bundle.js:2926:3)
at require(:1:137)
', reason: '(null)'
*** First throw call stack:
(
0   CoreFoundation                      0x00000001103f1d44 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x000000010c4a0a65<…>

Frontend client connected.

NativeScript debugger was not able to get inspector socket port on device AF686F2B-29B8-4C28-AB7F-D6FFA2789DDA for application au.com.wilmar.take5.test.

Cannot connect to device socket. The error message is 'Device socket port cannot be found.'.

Accepted Solutions (0)

Answers (1)

Answers (1)

mingkho
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Amin

Please give Option 2 in this note a try.

Regards

Ming