Sample Xamarin App Crashes on iPhone Simulator











up vote
2
down vote

favorite












I have the following issue. I downloaded this sample project.
I develop primarily on Windows 10 however for the iOS part I purchased a VM from macinthecloud.com



I have a real iPhone device however since we use VM I cannot connect it, or it is too complicated/expensive. My goal was to create ipa/zip file which I can later use for UI tests through Appium. I purchased Apple Developer Account and was able to create an ipa file.



It is installed on the simulator however if you try to run it, it immediately crashes. I read everything I could find, some people suggest that probably the build architecture is wrong. The only available option from this MacOS VM is ARM64.
The following error was displayed from the simulator debug log:



Nov 10 10:13:06 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (com.apple.videosubscriptionsd[64306]): Service exited with abnormal code: 1
Nov 10 10:13:08 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (UIKitApplication:com.xamarin.standardcontrols[0x2a65][63661][64308]): Program specified by service does not contain any valid architectures for this system.


Can you please suggest how I can handle the problem? I need to run the Xamarin app on the Simulator installed through Appium (which is going well, guess is the primary problem of the build settings)










share|improve this question




























    up vote
    2
    down vote

    favorite












    I have the following issue. I downloaded this sample project.
    I develop primarily on Windows 10 however for the iOS part I purchased a VM from macinthecloud.com



    I have a real iPhone device however since we use VM I cannot connect it, or it is too complicated/expensive. My goal was to create ipa/zip file which I can later use for UI tests through Appium. I purchased Apple Developer Account and was able to create an ipa file.



    It is installed on the simulator however if you try to run it, it immediately crashes. I read everything I could find, some people suggest that probably the build architecture is wrong. The only available option from this MacOS VM is ARM64.
    The following error was displayed from the simulator debug log:



    Nov 10 10:13:06 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (com.apple.videosubscriptionsd[64306]): Service exited with abnormal code: 1
    Nov 10 10:13:08 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (UIKitApplication:com.xamarin.standardcontrols[0x2a65][63661][64308]): Program specified by service does not contain any valid architectures for this system.


    Can you please suggest how I can handle the problem? I need to run the Xamarin app on the Simulator installed through Appium (which is going well, guess is the primary problem of the build settings)










    share|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I have the following issue. I downloaded this sample project.
      I develop primarily on Windows 10 however for the iOS part I purchased a VM from macinthecloud.com



      I have a real iPhone device however since we use VM I cannot connect it, or it is too complicated/expensive. My goal was to create ipa/zip file which I can later use for UI tests through Appium. I purchased Apple Developer Account and was able to create an ipa file.



      It is installed on the simulator however if you try to run it, it immediately crashes. I read everything I could find, some people suggest that probably the build architecture is wrong. The only available option from this MacOS VM is ARM64.
      The following error was displayed from the simulator debug log:



      Nov 10 10:13:06 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (com.apple.videosubscriptionsd[64306]): Service exited with abnormal code: 1
      Nov 10 10:13:08 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (UIKitApplication:com.xamarin.standardcontrols[0x2a65][63661][64308]): Program specified by service does not contain any valid architectures for this system.


      Can you please suggest how I can handle the problem? I need to run the Xamarin app on the Simulator installed through Appium (which is going well, guess is the primary problem of the build settings)










      share|improve this question















      I have the following issue. I downloaded this sample project.
      I develop primarily on Windows 10 however for the iOS part I purchased a VM from macinthecloud.com



      I have a real iPhone device however since we use VM I cannot connect it, or it is too complicated/expensive. My goal was to create ipa/zip file which I can later use for UI tests through Appium. I purchased Apple Developer Account and was able to create an ipa file.



      It is installed on the simulator however if you try to run it, it immediately crashes. I read everything I could find, some people suggest that probably the build architecture is wrong. The only available option from this MacOS VM is ARM64.
      The following error was displayed from the simulator debug log:



      Nov 10 10:13:06 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (com.apple.videosubscriptionsd[64306]): Service exited with abnormal code: 1
      Nov 10 10:13:08 DXU684 com.apple.CoreSimulator.SimDevice.AEDE77F9-AFD7-4788-9F69-9FB6FA9CDF54[63635] (UIKitApplication:com.xamarin.standardcontrols[0x2a65][63661][64308]): Program specified by service does not contain any valid architectures for this system.


      Can you please suggest how I can handle the problem? I need to run the Xamarin app on the Simulator installed through Appium (which is going well, guess is the primary problem of the build settings)







      xamarin xamarin.ios appium appium-ios






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 at 20:16









      James Z

      11.1k71735




      11.1k71735










      asked Nov 10 at 18:22









      Anton Angelov

      1,377815




      1,377815
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted











          Program specified by service does not contain any valid architectures for this system.




          In a IPA build, there is no x86_64 option as there are no x86-based iOS devices, only ARM-based.



          What you could do is build for simulator/x86_64 and drag/drop the resulting .app to the simulator (or install via xcrun simctl install..., which is what everyone uses (Appium, Xamarin, ...) for controlling the simulator).



          The .app is generated in the bin/iPhoneSimulator directory, example below:



          ├── bin
          │   └── iPhoneSimulator
          │   └── Debug
          │   ├── device-builds
          │   │   ├── iphone11.4-12.0
          │   │   │ ├── ios_XXXX.app
          │   │   └── iphone11.4-12.1
          │   │   ├── ios_XXXX.app


          Note: Building via Xcode 10.1 / iOS 12.1 / Xamarin.iOS 12.2.?.? will produce an .app that produces an .plist error when installed via drag/drop, but not when installed via simctl. This does not occur on earlier Xamarin.iOS 12.x versions and "assume" it is a Xamarin bug as the plist is slightly malformed when compared to an Xcode build (simctl does not seem to care, but the simulator GUI does...)






          share|improve this answer























          • Thanks for the fast answer. I will try what you suggested and write back if worked. :)
            – Anton Angelov
            Nov 11 at 8:04










          • This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
            – Anton Angelov
            Nov 11 at 8:51











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242057%2fsample-xamarin-app-crashes-on-iphone-simulator%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted











          Program specified by service does not contain any valid architectures for this system.




          In a IPA build, there is no x86_64 option as there are no x86-based iOS devices, only ARM-based.



          What you could do is build for simulator/x86_64 and drag/drop the resulting .app to the simulator (or install via xcrun simctl install..., which is what everyone uses (Appium, Xamarin, ...) for controlling the simulator).



          The .app is generated in the bin/iPhoneSimulator directory, example below:



          ├── bin
          │   └── iPhoneSimulator
          │   └── Debug
          │   ├── device-builds
          │   │   ├── iphone11.4-12.0
          │   │   │ ├── ios_XXXX.app
          │   │   └── iphone11.4-12.1
          │   │   ├── ios_XXXX.app


          Note: Building via Xcode 10.1 / iOS 12.1 / Xamarin.iOS 12.2.?.? will produce an .app that produces an .plist error when installed via drag/drop, but not when installed via simctl. This does not occur on earlier Xamarin.iOS 12.x versions and "assume" it is a Xamarin bug as the plist is slightly malformed when compared to an Xcode build (simctl does not seem to care, but the simulator GUI does...)






          share|improve this answer























          • Thanks for the fast answer. I will try what you suggested and write back if worked. :)
            – Anton Angelov
            Nov 11 at 8:04










          • This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
            – Anton Angelov
            Nov 11 at 8:51















          up vote
          1
          down vote



          accepted











          Program specified by service does not contain any valid architectures for this system.




          In a IPA build, there is no x86_64 option as there are no x86-based iOS devices, only ARM-based.



          What you could do is build for simulator/x86_64 and drag/drop the resulting .app to the simulator (or install via xcrun simctl install..., which is what everyone uses (Appium, Xamarin, ...) for controlling the simulator).



          The .app is generated in the bin/iPhoneSimulator directory, example below:



          ├── bin
          │   └── iPhoneSimulator
          │   └── Debug
          │   ├── device-builds
          │   │   ├── iphone11.4-12.0
          │   │   │ ├── ios_XXXX.app
          │   │   └── iphone11.4-12.1
          │   │   ├── ios_XXXX.app


          Note: Building via Xcode 10.1 / iOS 12.1 / Xamarin.iOS 12.2.?.? will produce an .app that produces an .plist error when installed via drag/drop, but not when installed via simctl. This does not occur on earlier Xamarin.iOS 12.x versions and "assume" it is a Xamarin bug as the plist is slightly malformed when compared to an Xcode build (simctl does not seem to care, but the simulator GUI does...)






          share|improve this answer























          • Thanks for the fast answer. I will try what you suggested and write back if worked. :)
            – Anton Angelov
            Nov 11 at 8:04










          • This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
            – Anton Angelov
            Nov 11 at 8:51













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted







          Program specified by service does not contain any valid architectures for this system.




          In a IPA build, there is no x86_64 option as there are no x86-based iOS devices, only ARM-based.



          What you could do is build for simulator/x86_64 and drag/drop the resulting .app to the simulator (or install via xcrun simctl install..., which is what everyone uses (Appium, Xamarin, ...) for controlling the simulator).



          The .app is generated in the bin/iPhoneSimulator directory, example below:



          ├── bin
          │   └── iPhoneSimulator
          │   └── Debug
          │   ├── device-builds
          │   │   ├── iphone11.4-12.0
          │   │   │ ├── ios_XXXX.app
          │   │   └── iphone11.4-12.1
          │   │   ├── ios_XXXX.app


          Note: Building via Xcode 10.1 / iOS 12.1 / Xamarin.iOS 12.2.?.? will produce an .app that produces an .plist error when installed via drag/drop, but not when installed via simctl. This does not occur on earlier Xamarin.iOS 12.x versions and "assume" it is a Xamarin bug as the plist is slightly malformed when compared to an Xcode build (simctl does not seem to care, but the simulator GUI does...)






          share|improve this answer















          Program specified by service does not contain any valid architectures for this system.




          In a IPA build, there is no x86_64 option as there are no x86-based iOS devices, only ARM-based.



          What you could do is build for simulator/x86_64 and drag/drop the resulting .app to the simulator (or install via xcrun simctl install..., which is what everyone uses (Appium, Xamarin, ...) for controlling the simulator).



          The .app is generated in the bin/iPhoneSimulator directory, example below:



          ├── bin
          │   └── iPhoneSimulator
          │   └── Debug
          │   ├── device-builds
          │   │   ├── iphone11.4-12.0
          │   │   │ ├── ios_XXXX.app
          │   │   └── iphone11.4-12.1
          │   │   ├── ios_XXXX.app


          Note: Building via Xcode 10.1 / iOS 12.1 / Xamarin.iOS 12.2.?.? will produce an .app that produces an .plist error when installed via drag/drop, but not when installed via simctl. This does not occur on earlier Xamarin.iOS 12.x versions and "assume" it is a Xamarin bug as the plist is slightly malformed when compared to an Xcode build (simctl does not seem to care, but the simulator GUI does...)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 10 at 19:35

























          answered Nov 10 at 19:09









          SushiHangover

          49.2k53583




          49.2k53583












          • Thanks for the fast answer. I will try what you suggested and write back if worked. :)
            – Anton Angelov
            Nov 11 at 8:04










          • This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
            – Anton Angelov
            Nov 11 at 8:51


















          • Thanks for the fast answer. I will try what you suggested and write back if worked. :)
            – Anton Angelov
            Nov 11 at 8:04










          • This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
            – Anton Angelov
            Nov 11 at 8:51
















          Thanks for the fast answer. I will try what you suggested and write back if worked. :)
          – Anton Angelov
          Nov 11 at 8:04




          Thanks for the fast answer. I will try what you suggested and write back if worked. :)
          – Anton Angelov
          Nov 11 at 8:04












          This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
          – Anton Angelov
          Nov 11 at 8:51




          This worked. The app installed successfully on the simulator though drag and drop. There are some other problems with installing it through Appium but this is something for their forum. Thank you again.
          – Anton Angelov
          Nov 11 at 8:51


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242057%2fsample-xamarin-app-crashes-on-iphone-simulator%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Full-time equivalent

          さくらももこ

          13 indicted, 8 arrested in Calif. drug cartel investigation