Closed radek-anuszewski closed 7 years ago
Hi @radek-anuszewski
Did you follow the installation section in the README?
in particular this:
Objective-C Bridging Header: YOUR_PROJECT/Bridging-Header.h Insert the content of the ZeroConf-Bridging-Header.h file in it.
Thank @becvert to you for very fast answer, I placed Bridging-Header.h
in www directory (which is zipped with config.xml to produce .zip for upload to Phonegap) with content:
#import <Cordova/CDV.h>
But I don't know how to set, for example - Embedded Content Contains Swift Code: YES
- I am using Windows 7 for development, do I have to build it locally on Mac? I am grateful to you for your help.
I'm not familiar with Phonegap.
The Bridging-header.h file goes into
This might pose a similar issue with current ionic package cloud builds. The way these builds work is that they usually only upload your config.xml plus a JSON that lists plugins with github/npm references. Anything you change in platform folders (that you'd use for local builds) won't work using cloud based building tools like phonegap or ionic build.
In order to get this to work with remote build services, I used https://github.com/akofman/cordova-plugin-add-swift-support
However, I just ran into another issue. When I build an app like that on ionic, everything works fine (zeroconf) but when submitting to the App Store I get the following error from Apple:
Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.
Now I'm not sure wether this is an Ionic build issue, an issue of zeroconf plugin or the swift plugin.
However, when I use the latest Xcode and an Ionic generated xcode project, during compilation, I get a lot of "old swift syntax" errors.
Hi @genox
I think I'll add cordova-plugin-add-swift-support as a dependency to allow building on Phonegap and ionic.
I will update zeroconf with the latest Xcode and try to fix swift syntax errors. I may not be up-to-date.
All of this may help with the "invalid swift support". I don't know.
Thanks
Hey @becvert - that would be great. Thank you.
Phonegap/Ionic builds should be supported now. Please let me know if it's working.
I have not encountered old swift syntax
errors
Hi! I have tried to build phonegap application using your plugin, here's how I included it in config.xml:
But I got this error:
Here is full stack trace from Phonegap ios log:
I am using 5.1.1 version:
<preference name="phonegap-version" value="cli-5.1.1" />
Please answer if you need more information, I will provide it as soon as possible. Thank you in advance for looking for this problem.
Greetings, Radek.
P.S.
It happened for both 1.0.1 and 1.1.0 versions.