Xcode 10.12

Question or issue on macOS:

MacOS 10.12.4; The latest version of Visual Studio for Mac; Xcode 9.0 or later; A device with iOS 11.0 or tvOS 11.0 and later; The latest version of Visual Studio; A device with iOS 11.0 or tvOS 11.0 and later; On your Mac build host, the following components should be installed: macOS 10.12.4; Visual Studio for Mac; Xcode 9.0 or later. See full list on developer.apple.com. I've an Early 2011 MacBook and I am not able to upgrade the operating system beyond macOS Sierra 10.12.6 (16G1815) on it. I am working with Xcode and in my current project I need to integrate Auto-renewable Subscriptions functionality, but discount features such as free trail period, pay as you go, and pay upfront are linked in introductory. Found this in the release notes for Xcode 8.3 beta. About Xcode 8.3 beta 3. Supported Configurations. Xcode 8.3 beta 3 requires a Mac running macOS 10.12 or later. Xcode 8.3 beta 3 includes SDKs for iOS 10.3, watchOS 3.2, macOS 10.12.4, and tvOS 10.2. Hello all, This is a first for me.

I want to install and try out the new features of macOS 10.12. Also I really want to work on Xcode 8.0. But the same time I have some client projects which should written on Swift 2.2 [ Xcode 7.3.1 ], I don’t want use Swift 2.3 or Swift 3.0.

So is it possible to install Xcode 7.3.1 in macOS 10.12? Is there any hacky way to do this?

10.14

Yes I have successfully installed both Xcode 7.3.1 and Xcode 8.0 in my macOS Sierra.

Now using both Xcodes. But whenever I run my project using Xcode 7.3.1 I am getting this error DTAssetProviderService could not start DTXConnection with Simulator ‘iPhone 6s’. Check the system log for errors. I don’t know the actual reason for this. I have googled for the answers but those suggestions didn’t help me. But at the same time I can run projects in Xcode 8.0 in Simulator, no errors, nothing.

If anyone came to see this, Please let me know your comment.

How to solve this problem?

Solution no. 1:

Xcode 12.5 Release Notes

You can absolutely install Xcode 7.3.1 on macOS Sierra alongside the beta version of Xcode 8.

If you are having issues running Xcode 7.3.x or running the simulator:

  1. Reinstall Xcode 7.3.x from https://developer.apple.com/downloads/.

  2. Manually attach the debugger to your process as outlined in this Stack Overflow answer.

Solution no. 2:

Xcode

To keep Xcode 7.3.1 running again besides Xcode 8.2 on macOS Sierra 10.12.2 I had to clean the following folders:

Even cleaning the userdata of the specific project was helpful:

After restarting the mac and trying to open the project it crashed again because there was already content in this folder:

After deleting these plug-ins again it finally worked!

Solution no. 3:

Xcode 7.3.1 and Sierra is a non-supported configuration. While most of it will work, things like running a project on the simulator won’t.

Solution no. 4:

You should also be aware that you need the current public releases of macOS (El Capitan) and Xcode (7.3) to create and submit archives to the iTunes App Store. Archives created with beta versions Xcode (8b1), or with the current Xcode 7.3 on a beta version of macOS (Sierra 10.12b1) won’t be accepted (submission process fails). It’s advised you backup your system before installing the macOS beta, and/or install the beta OS on a new partition. You can also install the current OS and Xcode on a small partition (10-20GB or so) if you’ll need to make a submission in the next 3 months, and remove it when the public releases are available. It takes a little setup, tho, to configure your signing certs, etc.

Solution no. 5:

I have installed OS X Sierra and I was working with XCode 7.2. I found some alignment, issues when the XCode run in Sierra. I have reported to the bug reporting centre. I got reply from the apple team that XCode 7.x versions are not supported in OS X Sierra and all the bugs has been closed. They recommends XCode 8 in OSX 10.12.

Hope this helps!

-->

An important part of the developer workflow is deploying to a device. Xcode 9 introduced the option of deploying to an iOS device or Apple TV through a network, rather than having to hardwire your devices every time you want to deploy and debug your app. This feature has been introduced in Visual Studio for Mac 7.4 and Visual Studio 15.6 release.

This guide details how to pair and deploy to a device over the network.

Requirements

Wireless deployment is available as a feature in both Visual Studio for Mac and Visual Studio.

To use wireless deployment, you must have the following:

Xcode 10.12
  • macOS 10.12.4
  • The latest version of Visual Studio for Mac
  • Xcode 9.0 or later
  • A device with iOS 11.0 or tvOS 11.0 and later
  • The latest version of Visual Studio
  • A device with iOS 11.0 or tvOS 11.0 and later

On your Mac build host, the following components should be installed:

  • macOS 10.12.4
  • Visual Studio for Mac
  • Xcode 9.0 or later

Connecting a Device

In order to deploy and debug wirelessly on your device, you must pair your iOS device or Apple TV with Xcode on your Mac. Once paired, you can select it from the device target list in Visual Studio.

The following pairing process should only need to happen once per device. Xcode will retain the connection settings.

10.12

Xcode 12.2

Pairing an iOS device with Xcode

Xcode 10.12
  1. Open Xcode and go to Window > Devices and Simulators.
  2. Plug your iOS device into your Mac using a lightning cable. You may need to select to Trust This Computer on your device.
  3. Select your device and then select the Connect via network checkbox to pair your device:

Pairing an Apple TV with Xcode

  1. Ensure your Mac and Apple TV are connected to the same network.

  2. Open Xcode and go to Window > Devices and Simulators.

  3. On the Apple TV, go to Settings > Remotes and Devices > Remote App and Devices.

  4. Select the Apple TV in the Discovered area in Xcode and enter the verification code displayed on the Apple TV.

  5. Click the Connect button. When it's successfully paired, a network connection icon appears beside the Apple TV.

Deploy to a Device

When a device is connected wirelessly and ready to be used for deployment, it shows up in the device target list, as if the device were connected through USB.

To test on a physical device, the device must be provisioned. Make sure to do this before attempting to deploy to a device.

To deploy to an iOS or tvOS device, use the following steps:

  1. Ensure that your deployment machine and target device are on the same wireless network.

  2. Select your device from the target device list and run the application.

  3. If your device is locked, you'll be prompted to unlock your device. Once the device is unlocked, your app is deployed to the device.

Xcode 10.12

Wireless debugging is automatically enabled after wireless deployment, so you can use previously set breakpoints and continue your debugging workflow as you've always done.

Troubleshooting

  1. Always ensure that your iOS device or Apple TV are connected to the same network as your Mac.

  2. If the device does not show in Visual Studio, check Xcode's Devices and Simulators window.

    • If Xcode does not show your device as connected, try to pair your device again.

    • If Xcode does show the device as connected, try restarting Visual Studio and your device.

  3. If you have not yet done so, you will need to provision your device.

  4. If you have problems with this feature that can't be fixed by the previous steps, please file an issue in Developer Community.

Related Links

Xcode 12 Download

Related Video

Find more Xamarin videos on Channel 9 and YouTube.