-
-
Notifications
You must be signed in to change notification settings - Fork 183
System Requirements
- 64-bit
- Targets OS X 10.7.5 or later
- Xcode 4.4 or later (LLVM 4.0 or later)
- Swift example projects require Xcode 7.0 or later.
ORSSerialPort can be used in 64-bit applications targeting Mac OS X 10.7.5 and later. It must be compiled on a machine running Mac OS X 10.7 Lion or later, with the LLVM 4.0 or later compiler, which is included in Xcode 4.4 and later. The Objective-C example projects require Xcode 5.0 or later due to their use of LLVM 5.0's Objective-C modules support. The Swift examples require Xcode 7.0 or later. (If you need to target OS X 10.6, you can use ORSSerialPort version 1.8.2.)
Note: ORSSerialPort cannot be used in iOS projects. It only supports OS X.
ORSSerialPort relies on IOKit.framework. If you install ORSSerialPort using the framework project, Carthage, or CocoaPods, this is handled for you. If you use ORSSerialPort by manually including its source code files in your project (not recommended), you can use Xcode's support for Objective-C modules to avoid having to manually link in the IOKit framework. To use this, you must make sure Objective-C module support is turned on in your target/project's build settings (see here). Alternatively, if you're using an older version of Xcode, or can't enable Objective-C module support for some reason, you must add the IOKit framework to the "Link Binary With Libraries" build phase for your target. In your project's settings, select your application's target, then click on the "Build Phases" tab. Expand the "Link Binary With Libraries" section, then click the "+" button in the lower left corner to add a new Framework. In the list that appears, find and select IOKit.framework, then click "Add".
Important Note: ORSSerialPort relies on Automatic Reference Counting (ARC). If you'd like to use it in a non-ARC project, and have included it directly as source code (not recommended), you'll need to open the "Compile Sources" build phase for the target(s) you're using it in, and add the -fobjc-arc flag to the "Compiler Flags" column for ORSSerialPort.m and ORSSerialPortManager.m. ORSSerialPort will generate a compiler error if ARC is not enabled.