C# 在本机iOS应用程序中构建Unity时出错
我是iOS开发的初学者。 我想在本机iOS应用程序示例中获得Unity的帮助。我参加了几门过时的在线课程,最后也出现了一些错误。我想请求是否有人可以发布一个视频教程或样本项目,使统一在本机的iOS应用程序。。下面是示例链接:-像这样C# 在本机iOS应用程序中构建Unity时出错,c#,swift,xcode,unity3d,native,C#,Swift,Xcode,Unity3d,Native,我是iOS开发的初学者。 我想在本机iOS应用程序示例中获得Unity的帮助。我参加了几门过时的在线课程,最后也出现了一些错误。我想请求是否有人可以发布一个视频教程或样本项目,使统一在本机的iOS应用程序。。下面是示例链接:-像这样 根据您的要求,我上传了一个视频教程,介绍如何在本机iOS应用程序中构建Unity,其中包含最新版本的Xcode-10.1和Unity-2018.2.18f1 Youtube链接- App Delegate的源代码是 AppDelegate.h #import <
根据您的要求,我上传了一个视频教程,介绍如何在本机iOS应用程序中构建Unity,其中包含最新版本的Xcode-10.1和Unity-2018.2.18f1 Youtube链接- App Delegate的源代码是 AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UIWindow *unityWindow;
@property (strong, nonatomic) UnityAppController *unityController;
- (void) showUnityWindow;
- (void) hideUnityWindow;
@end
和视图控制器
#import "ViewController.h"
#import "AppDelegate.h"
@interface ViewController ()
@property (nonatomic) BOOL isShowUnityWindow;
- (IBAction)showUnityTouched:(id)sender;
@property (weak, nonatomic) IBOutlet UIView *unityViewStart;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.isShowUnityWindow = NO;
}
- (IBAction)showUnityTouched:(id)sender {
self.isShowUnityWindow = !self.isShowUnityWindow;
AppDelegate *appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
if (self.isShowUnityWindow) {
[appDelegate.unityWindow setFrame:CGRectMake(40, 200, 500, 500)];
[appDelegate.unityWindow ]
[appDelegate showUnityWindow];
}
else {
[appDelegate hideUnityWindow];
}
}
@end
根据您的要求,我上传了一个视频教程,介绍如何在本机iOS应用程序中构建Unity,其中包含最新版本的Xcode-10.1和Unity-2018.2.18f1 Youtube链接- App Delegate的源代码是 AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UIWindow *unityWindow;
@property (strong, nonatomic) UnityAppController *unityController;
- (void) showUnityWindow;
- (void) hideUnityWindow;
@end
和视图控制器
#import "ViewController.h"
#import "AppDelegate.h"
@interface ViewController ()
@property (nonatomic) BOOL isShowUnityWindow;
- (IBAction)showUnityTouched:(id)sender;
@property (weak, nonatomic) IBOutlet UIView *unityViewStart;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.isShowUnityWindow = NO;
}
- (IBAction)showUnityTouched:(id)sender {
self.isShowUnityWindow = !self.isShowUnityWindow;
AppDelegate *appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
if (self.isShowUnityWindow) {
[appDelegate.unityWindow setFrame:CGRectMake(40, 200, 500, 500)];
[appDelegate.unityWindow ]
[appDelegate showUnityWindow];
}
else {
[appDelegate hideUnityWindow];
}
}
@end
您的错误是什么?@Rurouni,我尝试了10多个示例项目,它总是显示一些错误,例如预编译WiftBridgeHeader失败,出现非零退出代码错误或叮当声。如果我再清除这些,我会想出另一个。。真的很难。阿莱西要求任何最新的视频或样本。@Aleesha。。。。显示的屏幕截图error@wings,很难找到合适的解决方案,只有通过构建你能找到的样本..尝试将所有IDE更新到最新版本您的错误是什么?@Rurouni,我尝试了10多个样本项目,它总是显示一些错误,例如预编译WiftBridgeHeader失败,出现非零退出代码错误或叮当声。如果我再清除这些,我会想出另一个。。真的很难。阿莱西要求任何最新的视频或样本。@Aleesha。。。。显示的屏幕截图error@wings,这真的很难找到合适的解决方案,只有通过构建你能找到的示例。尝试将所有IDE更新为最新版本