Dear expert,
With the latest MDK version 4.2.3 i am getting this error when build the Asset Manager 4.0.3 app with the create-client.command. This was working ok with previous version. Thanks for help. Regards.
Versions
**********
MDK Dependencies Installer is all green => Your development environment is ready for MDK development! You’re ready to go to the next step!
Mobile Development Kit MDK CLIENT 4.2.3 ==> MDKCLNT02P_3-80005072.ZIP
Metadata for SAP Asset Manager 4.0.3 from the SAP ==> ASTMNGRMETDATA00_3-80004744.ZIP
Asset Manager Branding SDK 4.0 ==> ASSET_MNGR_SDK00_0-80004732.ZIP
Asset Manager plug-in SDK for iOS 00 4 => SAM_EXTSN_SDK00_4-70004601.ZIP
Asset Manager plug-in SDK for Android 00 4 => MDK_PLGSDK_AND00P_4-70004602.ZIP
Log
**********
./create-client.command
? Enter the path of the .mdkproject directory. SAM.mdkproject
Using SAM.mdkproject
Using /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK for out directory
? Do you want to remove the existing directory: "/Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/SWIMAssetManager4.0"? yes
? Would you like to build for iOS or Android or All? ios
Building client for ios
? Would you like to build for device or simulator of iOS? simulator
Building client for simulator of iOS
Removing existing directory /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/SWIMAssetManager4.0
Creating application SWIMAssetManager4.0
Copying modules to application directory
Copying plugins to application directory
Copying hooks to application directory
Copying sapmdc-declarations to application directory
Copying frameworks to iOS platform directory
Try to patch Release-iphonesimulator/SAPFiori.framework
Copying branded settings
SAM.mdkproject/demo does not exist. No demo databases will be used.
Copying TypeScript configuration files
Copying tns-platform-declarations configuration file
Customizing Root.plist file for iOS Settings app
Customizing app.entitlements to enable keychain sharing for simulator
Updating SAPFiori.h
Installing application dependencies
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
Installing mdk-core
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN mdk-core@1.0.0 requires a peer of crypto-js@^3.1.9 but none is installed. You must install peer dependencies yourself.
Customizing Root.plist file for iOS Settings app
Customizing app.entitlements to enable keychain sharing for simulator
Copying contents of SAM.mdkproject/App_Resources/iOS into /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/SWIMAssetManager4.0/app/App_Resources/iOS
Generating application bundle from metadata
MDK Bundler - resolving application @path SAM.mdkproject/metadata/
MDK Bundler - found application 'SAPAssetManager'
MDK Bundler - reading components @path SAM.mdkproject/metadata/
MDK Bundler - copying SAM.mdkproject/metadata/ to /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/build.definitions/SAPAssetManager
MDK Bundler - reading components @path SAM.mdkproject/metadata/
MDK Bundler - using external modules file-system,ui/dialogs,utils/utils
MDK Bundler - creating bundle /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/bundle.js
MDK Bundler - replacing bundle SAM.mdkproject/metadata/
MDK Bundler - reading components @path SAM.mdkproject/metadata/
[12:09:35] -- updating definitions --
MDK Bundler - replacing /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/SWIMAssetManager4.0/app/bundle.js
Copying /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/SWIMAssetManager4.0/app/bundle.js to app/demo.js
Copying extension extension-Analytics
Copying extension extension-BarcodeScanner
Copying extension extension-FieldDataCapture
Copying extension extension-HierarchyFramework
Copying extension extension-MapFramework
Compiling plugin TypeScript code
Installing plugin SAP
Installing plugin extension-Analytics_Plugin-Analytics
Installing plugin extension-BarcodeScanner_Plugin-BarcodeScanner
Installing plugin extension-FieldDataCapture_Plugin-FieldDataCapture
Installing plugin extension-HierarchyFramework_Plugin-HierarchyFramework
Installing plugin extension-MapFramework_Plugin-MapFramework
Installing plugin toolbar-plugin
Installing plugin zip-plugin
Creating en.lproj/Localizable.strings
Creating ar.lproj/Localizable.strings
Creating cs.lproj/Localizable.strings
Creating da.lproj/Localizable.strings
Creating de.lproj/Localizable.strings
Creating en.lproj/Localizable.strings
Creating es.lproj/Localizable.strings
Creating fr.lproj/Localizable.strings
Creating hu.lproj/Localizable.strings
Creating it.lproj/Localizable.strings
Creating ja.lproj/Localizable.strings
Creating ko.lproj/Localizable.strings
Creating nb.lproj/Localizable.strings
Creating nl.lproj/Localizable.strings
Creating pt.lproj/Localizable.strings
Creating zh-CN.lproj/Localizable.strings
Creating zh-TW.lproj/Localizable.strings
Creatingar.lproj/InfoPlist.strings
Creatingcs.lproj/InfoPlist.strings
Creatingda.lproj/InfoPlist.strings
Creatingde.lproj/InfoPlist.strings
Creatingen.lproj/InfoPlist.strings
Creatinges.lproj/InfoPlist.strings
Creatingfr.lproj/InfoPlist.strings
Creatinghu.lproj/InfoPlist.strings
Creatingit.lproj/InfoPlist.strings
Creatingja.lproj/InfoPlist.strings
Creatingko.lproj/InfoPlist.strings
Creatingnb.lproj/InfoPlist.strings
Creatingnl.lproj/InfoPlist.strings
Creatingpt.lproj/InfoPlist.strings
Copy loaders to project directory
Customizing Info.plist file
Updating /Users/xxxx/Desktop/SWIM/MDK_Applications/SAPAssetManager4.0/MDKClient_SDK/SWIMAssetManager4.0/app/App_Resources/iOS/Info.plist to use URL Scheme: samclient
Running tns prepare step
Cannot read property 'platform' of undefined
Cannot read property 'platform' of undefined
Error: Failed to run tns prepare ios