Are you ready to unleash the power of swift app development with Sitecore's mobile SDK? In this step-by-step guide, we'll take you through the process of setting up and testing a WhiteLabel-iOS app using Xamarin Studio on your Mac. By the end of this tutorial, you'll be able to create a fully functional iOS app that integrates seamlessly with your Sitecore instance.
Setting Up Your Environment
Before we dive into the world of swift app development, make sure you have Xcode and Xamarin Studio installed on your Mac. With these tools at your disposal, you're ready to start building your WhiteLabel-iOS app.
Configuring Access to Your Sitecore Instance
To connect your Mac to your Sitecore instance, follow these simple steps:
- Disable the Firewall in Windows (if using a Parallels VM)
- Add a host entry to your Mac's
/private/etc/hostsfile - Now you can access your Sitecore instance by visiting
http://habitat.localfrom your MacBook Pro
Cloning the Sitecore Mobile SDK for Xamarin Repository
Next, open a Terminal window and clone the GitHub repository:
https://github.com/Sitecore/sitecore-xamarin-pcl-sdk
This will give you access to the Sitecore Mobile SDK for Xamarin.
Running Your WhiteLabel-iOS App in Xamarin Studio
Now it's time to open the WhiteLabel-iOS solution file from Xamarin Studio and run the simulator. When prompted, select a device or simulator to test your app on.
Tip: Don't worry if you encounter an error message stating that no provisioning profiles match the installed iOS signing identities. We'll address this issue in the next step.
Resolving Common Errors
If you receive an error message indicating that there are no installed provisioning profiles matching the installed iOS signing identities, don't panic! Simply edit the related .csproj file and remove the tags to resolve the issue.
Resources:
- For more information on this topic, check out these helpful resources:
+ http://forums.xamarin.com/discussion/39534/cant-build-ios-in-xamarin-studio-5-7-1-through-5-9
+ http://stackoverflow.com/questions/30724551/no-installed-provisioning-profiles-match-the-installed-ios-code-signing-keys-in
Configuring App Settings
The final step is to configure your app settings by clicking on the "Edit" icon in the top right corner of the application. Here, you can set your hostname for the website to http://habitat.local (your Windows installed Sitecore instance).
And That's It!
With these simple steps, you've successfully set up and tested your WhiteLabel-iOS app using Xamarin Studio on your Mac. The possibilities are endless with swift app development and Sitecore's mobile SDK – happy building!