I am having an issue getting Xcode 9.2 and the Particle-SDK for IOS to work. When I don’t use any code and just build the project it compiles fine. It is only when I start to use the code on the GitHub site I have issues. I have run into these issues before, but found it was due to using frameworks in the Pod file.
I have added the header file and followed the directions in the GitHub Readme. Any help is very much appreciated.
Below are my Pod File and Errors on Xcode.
Here are my errors:
Here is my Pod File:
# Uncomment the next line to define a global platform for your project
platform :ios, ‘9.0’
target ‘Particle_Control’ do
Comment the next line if you’re not using Swift and don’t want to use dynamic frameworks
Pods for Particle_Control
target ‘Particle_ControlTests’ do
# Pods for testing
target ‘Particle_ControlUITests’ do
# Pods for testing
Let me ping someone that might be able to help, @rickkas7 or @blave
are you able to assist?
Is this an Object C++ or Swift project using Cocoa Pods?
If you’re using Swift, don’t forget to create the bridging header when using Cocoa Pods.
In Settings | Build Settings | Swift Compiler - General set Objective-C Bridging Header to project/Bridging-Header.h
In Settings | Build Settings | Search Paths set User Header Search Paths to search Pods recursively.
This is a swift project using Cocoa Pods.I get the same errors even when adding the (2) import statements. I am currently using #import “Particle-SDK.h”, as this matches my cocoa pod file. I used the directions that re on the GitHub page.
The project will compile with no code, it isn’t until I try and setup the project and write code that I get these errors.
I tested it again to be sure and I was able to make it work with a new test project. I created a tutorial that shows exactly how to do it:
@rickkas7 Very helpful. Worked like a charm. Appreciate the help.