swift-unity
swift-unity copied to clipboard
swiftc failed with exit code 1
I have a Unity app which uses Vuforia. I'm trying to embed this Unity app within a Swift Project. I am following the guide given here https://github.com/jiulongw/swift-unity . However when I build the project I get this following error:
:0: error: generate-pch command failed with exit code 1 (use -v to see invocation) Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
This is my Bridging-Header.h file
#import <Foundation/Foundation.h>
#ifndef BRIDGING_HEADER
#define BRIDGING_HEADER
#import <UIKit/UIKit.h>
#import "UnityUtils.h"
#import "UnityAppController.h"
#import "UnityInterface.h"
#endif /* BRIDGING_HEADER */
My xcode Version is 9.2 and Unity Version is 2017.3.1f1
Any suggestions on what I am doing wrong?
thank you
May be it is helpful to you https://stackoverflow.com/a/49691484/4601900
Thanks for the reply
i solved the problem.. It was the data folder which i need to include and vuforiaplayer framework and some minor changes here and there.
with regards Gourish Mesta
On June 13, 2018 at 3:10 PM PrashantKT [email protected] wrote:
May be it is helpful to you https://stackoverflow.com/a/49691484/4601900 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jiulongw/swift-unity/issues/82#issuecomment-396878106 , or mute the thread https://github.com/notifications/unsubscribe-auth/AlgqpEfPvTd8tnnAd_QkGipTn1ggQzbpks5t8N4WgaJpZM4UQK4F .