TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.3k forks source link

Failed to compile on Apple Silicon [M1] #2057

Closed rahulvyas closed 2 years ago

rahulvyas commented 2 years ago

I have recently upgraded to M1 Macbook and now I'm having errors when building my project.

Does anyone know how to fix this?

lappp9 commented 2 years ago

Hey @rahulvyas, I tried building the project as well as installing it into another project locally with cocoa pods on my M1 Mac and everything seemed to work fine. Did you have a sample app you could provide that reproduces this issue?

rahulvyas commented 2 years ago

Hey @rahulvyas, I tried building the project as well as installing it into another project locally with cocoa pods on my M1 Mac and everything seemed to work fine. Did you have a sample app you could provide that reproduces this issue?

Thanks for your reply. I was able to fix the issue on my machine. Closing the issue.

foxware00 commented 2 years ago

@rahulvyas anything in particular you did to get it to compile. I'm facing similar issues.

rahulvyas commented 2 years ago

@rahulvyas anything in particular you did to get it to compile. I'm facing similar issues.

I did pod deintegrate. and used these 2 commands

  1. sudo arch -x86_64 gem install ffi
  2. arch -x86_64 pod install

Try these and let me know if it works. Otherwise, add me over skype and I'll see what I can do. My skype id - imrahulvyas@gmail.com

foxware00 commented 2 years ago

Thanks for the response @rahulvyas Interestingly, I think those gems are related to rosetta and aren't aren't necessary. As least I've got it working without them

What it took for me was converting ASDimensionMake(CGFloat) into ASDimension(unit: .points, value: CGFloat)

It was complaining about an issue with the optimisations done at release. Debug builds were always fine.

rahulvyas commented 2 years ago

Thanks for the response @rahulvyas Interestingly, I think those gems are related to rosetta and aren't aren't necessary. As least I've got it working without them

What it took for me was converting ASDimensionMake(CGFloat) into ASDimension(unit: .points, value: CGFloat)

It was complaining about an issue with the optimisations done at release. Debug builds were always fine.

Great