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

Build failed because AgoraChat is missing a required architecture #12

Closed
aleos opened this issue May 29, 2023 · 13 comments
Closed

Build failed because AgoraChat is missing a required architecture #12

aleos opened this issue May 29, 2023 · 13 comments

Comments

@aleos
Copy link

aleos commented May 29, 2023

I included Agora Chat SDK in my project and can't build it for simulator anymore. I get the error:
image
Could you please support the simulator architecture?

@lixm1988
Copy link
Contributor

Until now Agora_Chat_iOS does't support arm64-simulator architecture.If you want to build it for simulator, you need enable rosetta and exclude arm64-simulator.
On Xcode 14.3,you can choose rosetta as this steps
image

@maxxfrazer
Copy link

@lixm1988 could we add the architecture in the next release, or is there something preventing us from doing so?

Apple is dropping rosetta support for Xcode:
https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon#Update-pre-compiled-libraries-with-Apple-silicon-support
Noted from the above link:

Don’t launch Xcode using Rosetta to resolve these errors.

More info: https://news.ycombinator.com/item?id=35079270

@lixm1988
Copy link
Contributor

lixm1988 commented May 30, 2023

@maxxfrazer Agora_Chat_iOS SDK depends on a library supported by a third Team.The library does not include arm64-simulator architecture.We have contacted them, and they will support arm64-simulator later

@maxxfrazer
Copy link

As Xcode is beginning to drop support, let’s see if they can bring up the timeline on it. Will message you separately

@aleos
Copy link
Author

aleos commented May 30, 2023

Enabling rosetta looks like too radical a change for my project. I made my project build by providing a 'stub' version of the chat model struct for simulator that doesn't actually use AgoraChat. It's currently ok as a temporary solution. But I hope that soon it will be possible to add support for the arm64 simulator, and I look forward to any information about this.

@aleos
Copy link
Author

aleos commented Jul 10, 2023

Are there any updates about the architecture support? I have found a workaround for this problem, but it would be better to remove it and use the built-in solution.

@lixm1988
Copy link
Contributor

lixm1988 commented Jul 10, 2023

We will support arm64-simulator in the next release and fix this problem.

@aleos
Copy link
Author

aleos commented Jul 10, 2023

That's great news! Is there any rough estimate when the next release might be rolled out?

@lixm1988
Copy link
Contributor

We plan to release the next version around mid-August. Any questions, please contact us.

@aleos
Copy link
Author

aleos commented Sep 23, 2023

Do you have any news?

@lixm1988
Copy link
Contributor

Do you have any news?

Sorry to keep you waiting for so long, there are still some unfinished documentation work in the 1.2.0 Release version. You can integrate the 1.2.0-beta version first.
image

@aleos
Copy link
Author

aleos commented Sep 26, 2023

Thank you! I'll try the beta version

@aleos
Copy link
Author

aleos commented Jan 5, 2024

Updated to v1.2. The issue is fixed. Thank you!

@aleos aleos closed this as completed Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants