XCode Continuous Integration - ios

I use new XCode Continuous Integration service running on Mac OS X 10.9. with using Mac OS X Server.
So I created new bot with testing target: Run tests on All Simulators (Without any devices)
After integration I receive such an error:
Integration failed. The bot was unable to find or use one of the
devices on which it is configured to integrate.
How can this problem be solved? I do not want to connect any devices to server for integration testing.
Thanks in advance,

Does the app you're testing support all devices? Try setting up the bot for "Specific Devices" and choose a simulator you have built to. Also make sure current code changes are pushed to the repository the Xcode server pulls from.
EDIT 11/19/13
On your server machine, make sure you have the latest Xcode release installed (currently 5.0.2).
Open Xcode and configure the Preferences, in Downloads, to install the command line tools, and be sure you have downloaded/installed a Simulator you want to test against. If you're building for iOS 6.1, for example, you'll need to install the simulator.
In your Mac OS X Server Xcode admin panel, in the "Builds" section, make sure you choose that Xcode app version. The server will use that Xcode app to do the builds.
When you edit the bot settings, where you configure which devices to test with, choose "Specific Devices" and choose a simulator you have successfully built to on your development machine, for example, choose the iPad Retina (6.1), or whatever your app supports.
If a specific simulator device does not appear in the list of Selected Devices, the simulator is probably not installed on your server machine. See step 2 above.
(Hope this helps)

This is similar in description, upgrading to Xcode 7.3 and the latest OS X Server, I was getting this error.
Bot Issue for MB Bot (build service error) Integration #69 of MB Bot
Open in Xcode:
xcbot://P3P4/botID/e6fd861f04bdb3ae4b3d731a1f0c4f9f/integrationID/cf7e287759d2045e134163c25b01518a
Assertion: Could not test because no devices or simulators were
available. File: (null):(null)
Introduced 1 integration ago
After digging into this a bit, and trying the "Fix..." button and installing all the different simulators for older OS versions to no avail on the server. Finally, I found that it was doing the checkout but immediately failing before it started building. Disabling the tests allowed it to compile. Then I noticed that the Build Configuration in the Bot configuration Perform Test Action, was set to Use Schema Settings, and that the scheme was older. After changing this in the schema, the diff looked like this in the Schema file.
- version = "1.3">
+ version = "1.7">
This seems to have fixed the problem. This is probably a rarer situation, but thought I would post this answer if someone ran into a similar problem as it took the span of several days to figure out.

Related

Xamarin.iOS does not support running or debugging the previous version of your project

I've been trying to fix this issue for 3 hours and nothing. My entire google search looks purple and there is no solution. This error just keep popping up no matter what I do.
Tried adding a new iOS project.
Tried creating a completely new project. Same issue.
I've got an iPad plugged in externally with a USB type C cable to my laptop and I have set up all the developer requirements from apple to be able to access my device via visual studio.
Updated the iPad to the latest iOS version 16.1.1 installed iTunes from the Microsoft store and I can see my device as an optional device to deploy my app too.
Windows 10
Visual Studio 2022
I've got a mac mini to test using Simulator but I want to test this on a real device not a Simulator. Works fine on Simulators but not on real device while plugged into Windows.
There is no more information I can provide with the error because I myself do no get more to work with either.
Many Thanks in Advance
Image of the .iOS/bin/iPhone/Debug. There are also country-specific directories above the files.

Xamarin Visual Studio ios simulator not working

We recently acquired mobile solution that contains an ios and android project. Android project runs fine. When i run the ios project i get error stating
My environment is a windows laptop and a macbook pro running visual studio from windows.
I can pair to mac just fine
I am using automatic provisioning which appears to be correct since my team shows up in the team dropdown.
I feel like i did the provisioning correct because team would not show up in dropdown if not.
I have latest xcode installed on mac
I verified simulator runs fine on mac by starting through xcode
In the videos i watched as soon as mac was paired then more options appeared besides just simulator. (ipad, tvos, etc)
One question is when i registered my device i used the UUID from the macbook and not UUID of simulator. Could not get straight answer for this.
To be clear i am just trying to run the simulator and not a remote device.
Honestly i just want to be able to test the ios application. It should not be this many steps to just run a test. Is there a more simple way to test or am i on the right track?
Updating visual studio on my windows machine did the trick. I really wish the error would give me some kind of warning that would lead me to the conclusion that i needed to update visual studio. That would have saved me many hours.

Test Qt app in ios Device

i've developped an application using QtQuick, it's running great on Android and ios simulator. now i want to test it in iPhone or ios real device.
So do i need to pay for that, or there is a way to test it for free.
In the build file for iosSimulator there a file with the app in the folder "Release-iphonesimulator", will this file work on the device ?
Recently, Xcode 7 beta 4 was released and one of the main features is that you no longer need to pay for deploying to your own device, all you need is your simple apple account.
After you do all the "Configure Device for Development in Xcode" stuff
Using Qt 5.5 (the newest) build your project and before trying to deploy it to your device, go to the place where the build for iphone is, and open it with Xcode 7 beta 4 (the .xcodeproj) and try to run it, it will fail and will ask you if you want to fix the project, say yes and again it will fail but no problem, now go to Qt and you should be able to deploy the app to your iphone. This worked for me!

Deploying Apache Cordova app to iPad without Apple developer account

After having developed an app for a friend using Visual Studio 2013 Pro with the Apache Cordova Extension, I hoped to also get it runnning on an iPad 3 as fast as with Android. However, things proved to be more complicated than originally thought: The 99$ for an Apple developer account would be far too high for a single device development (the app is intended to only work on one device, no commercial intentions).
At least I now have the ability to use Mac OSX and XCode, which is connected to Visual Studio via network. Installing the app in the iOS simulator works as expected, but I'm struggling with deploying it on the iPad. I already considered jailbraking the device, as the warranty is yet expired and it wouldn't be a problem for my friend. According to the Information I found it would be possible; however, I could not find much about how to do that.
Thanks in advance.
After several months I finally found a working solution:
The latest XCode version (7 Beta 2) is able to sign iOS applications using an ordinary AppleID instead of a $100 developer license.
First, you will need to prepare the vs-mda-remote node plugin on your Mac and be able to build applications [See here how]. Using an appropriate deployment target in Visual Studio, the app can be tested within a virtualized iOS environment.
However, the deployment options Remote Device and Local Device will both fail when you haven't subscribed to the Apple Developer Program. Other methods (described here or here) requiring jailbreaking the device haven't worked for me either.
Interestingly, Apple seems to have changed their strategy not much time ago , finally allowing to sign and deploy apps on non-rooted iOS devices.
Whenever an app is built for the iOS simulator, vs-mda-remote will create a whole new build folder (named using a 3 - 5 digit random number) located in ~/remote-builds/builds. Inside that build folder, you will need to find and open the XCode project file with XCode 7 (example path: ~/remote-builds/builds/654/cordovaApp/platforms/ios/YOUR_PROJECT_NAME.codeproj).
After having connected and detected your iOS device, you should be able to select it as deployment target. Then you should follow these instructions, basically just adding an AppleID which should be used to sign the app. This wasn't possible with earlier XCode versions and is certainly much easier than using one of the "hack"-like techniques involving jailbreaking your device and practically voiding it's warranty.
Finally, you will only need to set the Code Signing Identity to the registered AppleID (for both the Project and the Target) and you're ready to deploy your app.
This method worked for me using iOS 8.3 and Mac OSX Yosemite 10.10.4.
If there are any other questions, please feel free to ask.
in Visual Studio 2015 Community RC, there is an option to debug the app developed by cordova in 'remote device' (iPhone or ipad) connected to the Mac osx. Pls. try it.

iOS 8 Read console logs from user devices without installing Xcode

Any ideas how to get console logs from a user device running iOS 8?
Previous methods, including the iPhone Configuration Utility, do not seem to work with iOS 8 - the latter just doesn't show anything for the console. The older related iOS apps stopped working since iOS 7.
Installing Xcode is not an option, since the user is most likely running Windows, and in any case will not tolerate a multi-GB download and install.
We have an other option, which is, by installing itools and follow the below navigation where you can see the console logs.
Connect Your device to Windows. click on itools->Under iPhone->>Advanced->System logs.
Install itools from this location http://itools-for-windows.en.softonic.com/
iTools
To get real time iOS system logs on windows machine.
Note: Based on iOS / Xcode / iTunes (overall Apple) updates, this information is subject to change. With current iOS version 8.1.3, the iTools software version 3.1.7.6 works great.
Open iTools.
Connect your iDevice.
In the left pane under your device, choose 'Advanced'.
Click on 'System Logs'.
You'll get real time system logs just as Console log in Xcode.
As of iOS8 update iPhone Configuration Utility cannot get the logs. from a tutorial in testflight website, they say specifically for iOS 8 devices use xCode. So I guess you are out of luck.

Resources