OS - iOS: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
Line 43: Line 43:
* [[Language - Objective C#iOS|Objective C]]
* [[Language - Objective C#iOS|Objective C]]
* [[Language - Swift#iOS|Swift]]
* [[Language - Swift#iOS|Swift]]
==Advanced==
Here is some information about the files you have downloaded. Don't worry about how to reference these from your project, that is covered in the [[Languages|language]] section.
===macOS===
These files that were placed onto your system as part of the installation process:
*{{Code|Phidget22.framework}} is placed into {{Code|/Library/Frameworks}}.
*{{Code|Phidget.kext}} is placed into {{Code|/System/Library/Extensions}}.
*{{Code|phidgetnetworkservice22}} 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. This library is used 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|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:25, 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

Here is some information about the files you have downloaded. Don't worry about how to reference these from your project, that is covered in the language section.

macOS

These files that were placed onto your system as part of the installation process:

  • Phidget22.framework is placed into /Library/Frameworks.
  • Phidget.kext is placed into /System/Library/Extensions.
  • phidgetnetworkservice22 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. This library is used when downloading code to a physical iOS device.
  • iphonesimulator/libPhidget22.a contains the Phidget library, which is used at run-time. This library is used when using a simulator.
  • phidget22.h lists all the Phidget API function calls available to your code. Your compiler also has to know where this file is.