-
September 6th, 2016, 07:47 AM
#1
IOS Framework - Include of non-modular header inside framework module
Hello,
I'm trying to include Lightstreamer IOS in a new Swift Cocoa Touch Framework. I'm using Xcode 7.3.1 and receive this error.
#import <LightstreamerClientAll.h>
/Users/matt/projects/MyProject/MyProject/TSBrokers/TSBrokers-Bridging-Header.h:17:9: error: include of non-modular header inside framework module 'TSBrokers.TSBrokers_Bridging_Header'
I've tried the two below pod's
pod 'Lightstreamer_iOS_Client', '2.0.0'pod 'Lightstreamer_iOS_Client', '2.0.1'
And I've also tried directly importing the framework in a new project but still get the same error.
http://www.lightstreamer.com/repo/co...ient-2.0.0.zip
http://www.lightstreamer.com/repo/co...ient-2.0.1.zip
Any help to get this to compile would be greatly appreciated.
-
September 7th, 2016, 10:08 AM
#2
Hello,
I couldn't reproduce the problem. Using CocoaPods 1.0.0, our client library version 2.0.1 and a simple podfile (even using "use_frameworks!"), I could compile a sample framework correctly and use the client.
From what I can read on this Q&A on StackOverflow, this error is usually due to the inclusion of system headers file between the headers files of the framework (typically as a dependency). Our library does not make any such inclusion, so it could be due to something else.
If you still believe the error is caused by our library, please contact support@lightstreamer.com and send us a zip with a sample project that exhibits the error, and we will investigate the problem further.
Best regards,
Gianluca
-
September 8th, 2016, 04:53 AM
#3
Hi Gianluca,
Many thanks for responding.
I got a completely different response for a Swift framework.
Swift does not allow the use of a bridging header for frameworks, so I had to manually link the headers.
This stack overflow article helped me get to a solution for Xcode 8.
http://stackoverflow.com/questions/2...is-unsupported
rgds,
- matt.
Similar Threads
-
By johnffoley in forum Client SDKs
Replies: 1
Last Post: November 21st, 2011, 09:59 AM
-
By ned_b in forum Client SDKs
Replies: 4
Last Post: August 24th, 2011, 10:31 AM
-
By antiGuru in forum Adapter SDKs
Replies: 1
Last Post: February 5th, 2010, 09:55 AM
-
By athanasius2 in forum General
Replies: 3
Last Post: April 17th, 2009, 12:40 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:08 AM.
Bookmarks