OS - iOS: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
Line 45: Line 45:
* [[Language - Objective C#iOS|Objective C]]
* [[Language - Objective C#iOS|Objective C]]
* [[Language - Swift#iOS|Swift]]
* [[Language - Swift#iOS|Swift]]
==Advanced Information==
Here is some information about the files you have downloaded. Don't worry about how to reference these from your project, that will be covered in the language section.
===macOS===
These files that were placed onto your system as part of the installation process:
*{{Code|Phidget22.framework}} contains the actual Phidget library, which is used at run-time.  It is placed into {{Code|/Library/Frameworks}}.
*{{Code|Phidget.kext}} is the kernel extension.  It is placed into {{Code|/System/Library/Extensions}}.
*{{Code|phidgetnetworkservice22}} is the Phidget Network Service.  It is placed into {{Code|/usr/local/bin}}.
===iOS===
These files are available as part of the iOS drivers:
* {{Code|iphoneos/libPhidget22.a}} contains the Phidget library, which is used at run-time when downloading code to a physical iOS device.
* {{Code|iphonesimulator/libPhidget22.a}} contains the Phidget library, which is used at run-time when running an iOS simulator.
* {{Code|phidget22.h}} lists all the Phidget API function calls available to your code.  Your compiler also has to know where this file is.

Revision as of 22:58, 27 April 2017

Quick Downloads

Already know what you're doing? Here you go:

You may also be interested in the Advanced Information section of this guide located below.

Getting Started with iOS

Welcome to using Phidgets with iOS. If you haven't already, check out the user guide for your device. If you are ready to go, the first step in creating an iOS application with Phidgets is getting the Phidget Network Service up and running!

Network Service

Phidgets cannot be connected directly to iOS devices, therefore, in order to use Phidgets with your iOS device, you must have a host computer that is running the Phidget Network Service. Select the operating system of your host computer from the list below to set up your network service:

Installing Drivers

You should now have the Phidget Network Service running on your host computer. Starting to code your application is now in sight!

The next step is downloading drivers for your macOS development machine:

The last thing to install is the Phidget libraries that you will code your program against. Here they are:

Note the three main files that are included in the iOS drivers download:

  • iphoneos/libPhidget22.a
  • iphonesimulator/libPhidget22.a
  • phidget22.h

You will need to reference these files in your Xcode application. More information is provided in the programming language guides that are linked below.

Programming

Now that you have everything set up, all you have to do is code! Select from one of the following programming languages to get started: