OS - iOS: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
Line 53: Line 53:
===iOS===
===iOS===
These files are available as part of the iOS drivers:
These files are available as part of the iOS drivers:
* {{Code|iphoneos/libPhidget22.a}} contains the Phidget library, which is used at run-time. This library is used when downloading code to a physical iOS device.
* {{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. This library is used when using a simulator.
* {{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.
* {{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 21:34, 27 April 2017

Quick Downloads

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

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:

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:

  • Phidget22.framework contains the actual Phidget library, which is used at run-time. It is placed into /Library/Frameworks.
  • Phidget.kext is the kernel extension. It is placed into /System/Library/Extensions.
  • phidgetnetworkservice22 is the Phidget Network Service. It is placed into /usr/local/bin.

iOS

These files are available as part of the iOS drivers:

  • iphoneos/libPhidget22.a contains the Phidget library, which is used at run-time when downloading code to a physical iOS device.
  • iphonesimulator/libPhidget22.a contains the Phidget library, which is used at run-time when running an iOS simulator.
  • phidget22.h lists all the Phidget API function calls available to your code. Your compiler also has to know where this file is.