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

Potential issues with releasing iOS app w/ Themis on M1 #863

Closed
vixentael opened this issue Jul 16, 2021 · 3 comments
Closed

Potential issues with releasing iOS app w/ Themis on M1 #863

vixentael opened this issue Jul 16, 2021 · 3 comments
Labels
installation Installation of Themis core and wrapper packages M1 M-CocoaPods Package manager: CocoaPods, Objective-C and Swift, iOS and macOS O-iOS 📱 Operating system: iOS

Comments

@vixentael
Copy link
Contributor

@deszip brings us news – he is trying to build project with Themis on "normal laptop" and it's working. However, building the same project on M1 using macOS beta2 leads to linking errors: Xcode can't find armv7 architecture slice.

It's unclear whether it's Themis/OpenSSL building problem OR M1/macOS beta related problems. Need to investigate.

Environment:

  • OS: latest iOS
  • Hardware: Apple M1, macOS beta2
  • Themis version: 0.13.10
  • Installation way: cocoapods

xcode 13
IMAGE 2021-07-16 15:04:22

xcode 12
IMAGE 2021-07-16 15:04:24

@vixentael vixentael added installation Installation of Themis core and wrapper packages M-CocoaPods Package manager: CocoaPods, Objective-C and Swift, iOS and macOS O-iOS 📱 Operating system: iOS labels Jul 16, 2021
@vixentael vixentael added the M1 label Jul 22, 2021
@vixentael
Copy link
Contributor Author

@RaD this is something for us to check with upcoming release:

  • cocoapods
  • M1 laptop
  • Build, Debug, Release, submit to appstore

We should verify that Themis+cocoapods apps work without issues on M1 during the whole project lifecycle.

@radetsky
Copy link
Contributor

Today I tested the issue.

Model Name: MacBook Pro
Chip: Apple M1 Pro
Memory: 16 GB
System Firmware Version: 7459.141.1
macOS: 12.5.1
XCode: 13.4.1
Cocoapods: 1.11.3 installed from homebrew

Steps which I have done:

  1. Make the empty project 'Application for iOS' with SwiftUI
  2. Run 'pod init', add pod 'themis' to the Podfile and run 'pod install'
  3. Add 'import themis' and code to the ContentView.swift file to render symmetric key, asymmetric key pair, and encrypted example text 'Hello, Themis!' without context
  4. I saw the preview
  5. Run with debug and release modes on the simulator
  6. Archive it and upload it to App Store
  7. Run internal testing and download binary through the TestFlight app
  8. Test application natively on the iPhone X

Test project you find at https://github.com/radetsky/ThemisTestSwiftUIPods

IMG_1826

@vixentael
Copy link
Contributor Author

Great, I close this issue, and let's hope that it's working for @deszip, and if it's not, plz come back with more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Installation of Themis core and wrapper packages M1 M-CocoaPods Package manager: CocoaPods, Objective-C and Swift, iOS and macOS O-iOS 📱 Operating system: iOS
Projects
None yet
Development

No branches or pull requests

2 participants