cancel
Showing results for 
Search instead for 
Did you mean: 

Having issues running local build from VSCode in Mac Environment

0 Kudos
352

microsoftteams-image.png Hi Experts, I was having one strange issue while working with MDK SDK 6.x version in local dev setup(Mac OS) for development. After generating the iOS/Android project through .create_client command and trying to run it simulator/emulator, it comes with a empty screen(attached along with the post), with only options to update the app from online metadata which was previously deployed through mobile services. And after that the local changes doesn’t reflect on the build and unable to make any progress for development locally. Have tried with multiple SDK versions available in MDK 6.x, but this issue is coming up for all the versions, which is surprisingly new as it didn’t occur while working with 5.x versions of MDK SDK. Please advise accordingly.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos
suman_01
  • Did you create your MDK client having built-in metadata in your .mdkproject?
  • What MDK SDK version you are using?
0 Kudos

Hi Jitendra, Thanks for such quick response. I have used MDK SDK version 6.0.3, 6.0.6 and also the latest one 6.1.1, and have reached into the same scenario. I had put in my app metadata within the .mdkproject folder and generated the project, and then tried modify the same metadata from VSCode and tried to check it. I can also share the template.mdkproject if required.

Accepted Solutions (0)

Answers (3)

Answers (3)

chris_gray1
Explorer

I had the same issue when I migrated SAM 2010 to MDK 6. Try opening the workspace in Xcode and launching the simulator from there. It still errored for me, but at least the error was easier to investigate.

After migrating the code, the two problems I had were:

- The Xcode app was not explicitly called 'Xcode'. If you keep multiple versions and name them appropriately then it will not work. Update to Xcode 13 and make sure it's just called Xcode.

- Remove the sample ButtonStackModule extension. My publishes and app updates failed repeatedly until I deleted the extension folder included in the migration note.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The blank page is the default app definitions that get used when there is no bundled metadata in the create-client. Please share a screen shot of the expanded folder structure of your .mdkproject or reach out directly and share a copy.

0 Kudos

Hi Bill, Please find the below link to check the template.mdkproject contents. I have also added the app metadata in it.

link for source -<link removed>

For the time being, I am able to make changes in mbundle.js file with in the generated project and check the changes in the local build.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'll reach out directly to discuss

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Does your metadata project include any metadata extension controls? Have you migrated the controls and any rule imports to the MDK 6.x format?

Also, please pull and check the log from your simulator client. It may contain error messages related to why the App update isn't loading that will give you a pointer as to what is the error.

0 Kudos

Hi Bill,

Yes the project includes extensions, and we have successfully migrated the entire code along with the .ts files of the extension control. Also for the the logs, I have checked them after uploading from simulator, and didn’t find any meaningful suggestions to narrow down on the issue I am having.

Please let me know if there is any possibility if we could sync up and check on the issue.

clientlogs-2022-01-24-075357823.txt