Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Projects Fail to Build #2219

Open
MeharDT opened this issue Apr 7, 2024 · 6 comments
Open

iOS Projects Fail to Build #2219

MeharDT opened this issue Apr 7, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@MeharDT
Copy link
Contributor

MeharDT commented Apr 7, 2024

Release Type: Official Release

Version: 4.2.0.2122, 4.1.x

Platform(s): iOS

Describe the bug
iOS projects in Stride 4.1 and 4.2 will show the following errors in the AppDelegate class when attempting to build.

Error	CS0234	The type or namespace name 'Starter' does not exist in the namespace 'Stride' (are you missing an assembly reference?)
Error	CS0246	The type or namespace name 'StrideApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?)

To Reproduce
Steps to reproduce the behavior:

  1. Start Stride 4.2.0.2122
  2. Create a New Game project for iOS
  3. Once Stride Game Studio has loaded, open the Visual Studio solution and build the iOS project

Expected behavior
The errors should not be thrown and the iOS platform should build successfully.

Additional context
Does not occur in Stride 4.0 projects.

@MeharDT MeharDT added the bug Something isn't working label Apr 7, 2024
@Arktische
Copy link

I encountered the same issue. Do you find a solution to solve it?

@MeharDT
Copy link
Contributor Author

MeharDT commented Jun 11, 2024

Hi, I haven't had a chance to properly debug this at a source level yet and I don't know if anyone else has either.

If you need Stride and iOS support the only solution at the moment seems to be to use version 4.0 and upgrade once fixed.

@MeharDT
Copy link
Contributor Author

MeharDT commented Jun 15, 2024

Hello @Arktische, are you sure you were getting the same errors originally in your Stride iOS project? Specifically regarding the missing namespaces?

@Basewq
Copy link
Contributor

Basewq commented Jun 15, 2024

I don't have an iOS machine so can't help with anything beyond this single post.
StrideApplicationDelegate.cs (which is the file the error is wanting) got deleted in this commit 9563868
I think this needs a Silk replacement, however no replacement had been implemented on Stride's side of things and it appears Silk's last note on iOS was it only had experimental support for iOS.

Also be aware in that same commit the EditText control for iOS throws a bunch of NotImplementedException so that also appears incomplete.

@Arktische
Copy link

Arktische commented Jun 15, 2024

Thanks for your reply, so is iOS build not available for stride4.2 or there's any way to replace this StrideApplicationDelegate?

@Basewq
Copy link
Contributor

Basewq commented Jun 15, 2024

我没有 iOS 机器,所以除了这篇文章之外,我无能为力。 (这是错误想要的文件)在此提交中删除9563868 我认为这需要 Silk 替换,但是 Stride 方面没有实现任何替换,似乎 Silk 在 iOS 上的最后一条说明是它只对 iOS 提供实验性支持。StrideApplicationDelegate.cs
还要注意,在同一提交中,iOS 的 EditText 控件会抛出一堆,因此看起来也不完整。NotImplementedException

Thanks for your reply, so is iOS build not available for stride4.2 or there's any way to replace this StrideApplicationDelegate?

I don't know. When the Android version was changed, xen2 simplified the code in this commit 3ce7fac
See the change from AndroidStrideActivity.cs to StrideActivity.cs

I think if you want to replace StrideApplicationDelegate.cs, the important code is create a new GameContextiOS and Game, then call Game.Run(GameContext);.
I think you can ignore the CreateView & CreateViewController code.
Sorry, I cannot test this so I do not actually know if this will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants