-
Notifications
You must be signed in to change notification settings - Fork 16
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
Failed build iOS with Codemagic #22
Comments
Hello @santomalau03 , please try the following:
Kind regards, |
Hello @santomalau03 , have you managed to solve the issue, or does it still persist? Thank you. Kind regards, |
Hello @talsec-app , I have similar issue when build ios. In ios directory it has contained the Thank you |
after some search, in my case, it turn out because i targeted build for arm64 and armv7, while the latest freerasp-ios support arm64 and simulator arm64 & x86_x64, therefore define arm64 as build target could resolve my issue. thx, cmiiw. |
Thank you @acdwisu , we will investigate this further and add the information into the manual. |
thank you @talsec-app |
@talsec-app Any update on this, @acdwisu any solution how can I fix this ? |
Hello @tusharanchliyajain , |
Hey @msikyna, |
Hello everyone! After deep analysis and bug hunting, I was finally able to replicate and track down the issue. To resolve this issue, you have to adjust Codemagic pipeline. Notice that the instructions below apply to the workflow editor (not yaml one).
#!/bin/sh
flutter pub get
cd ios
pod install
cd .symlinks/plugins/freerasp/iOS
ln -s Debug/TalsecRuntime.xcframework
cd ../../../../
pod install
Please let us know, if this solution worked for you. Jaroslav from Talsec Team. |
@yardexx i used the same script in our code magic flow. I forgot to mention here .. anyways thanks for the reply |
@tusharanchliyajain Thank you for your response. Since solution works for you as well, I am closing this issue. Information about possible issues with Codemagic and how to resolve them will be added into README.md here on GitHub and on next release on pub.dev README as well. If issue reoccurs, don't hesitate to reopen this issue. Kind regards, |
Hi @yardexx, we are using codemagic.yaml since the workflow editor doesn't support all of the features that we need for our pipelines. I've added the script that you provided before the flutter build ipa gets called and I still receive the Our script looks like this:
What I've tried so far:
|
Hello @peer-f Apologies for the delay. I'll take look into it ASAP. Jaroslav from Talsec (Reopening issue) |
After long research, I cannot find a solution for the current version. However, we will test a new version of freeRASP which will contain only a single iOS framework. That will resolve this issue once and for all. Once released, I'll let you know here. |
Hi @yardexx, thank you for looking into the issue! |
Since its inception, freeRASP has had a crucial feature of distinguishing between dev and release versions. This allows for testing checks without including them in the weekly report, ensuring accurate data. Until freeRASP 4.0.0, this was achieved by using two native SDKs, one for dev and one for release, which were switched based on the type of build (debug/profile/release). While this approach worked well for Android, it caused a lot of headaches for iOS. Additionally, since Flutter does not directly support Swift Package Manager, it made the situation even more complicated. To resolve this issue, a symlink for the specific SDK is created on build time (using an integration script provided by the integrator), but as you can see, this workaround works sometimes and causes many issues. To simplify things, the native SDKs were modified so that a single SDK could be used, and a flag would determine whether Talsec SDK operates in dev (false) or release (true - default for security reasons) mode. No changes occur during build time, avoiding any issues with imports. The new API includes an final config = TalsecConfig(
androidConfig: ...,
// Defaults to true
// true - release (no need to write explicitly)
// false - dev
isProd: false,
) The checks have also been improved. If you're testing freeRASP 5.0.0-dev.1 (we're glad to hear that!), don't forget to remove the old iOS integration script and use However, it's important to note that freeRASP 5.0.0-dev.1 should not be considered stable. We plan to update the API to provide clearer integration. We also plan to merge iOS and Android callbacks into a single callback (e.g. onSimulatorDetected and onEmulatorDetected will be merged) for clearer and less cluttered code. |
Hello @peer-f , Kind regards, |
Hi @msikyna , I will check it asap. Best Regards, |
Hello @peer-f , Kind regards, |
Hello @talsec-app
I tried to build and distribute app within codemagic, but i got this error
The text was updated successfully, but these errors were encountered: