Parse Issue (Xcode): Module 'connectivity_plus' not found #2053
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
workflows:
Resolving dependencies... Archiving xxx.xxx.xxx... Encountered error while archiving for device. Build failed :| I believe the solution is to install the 'connectivity_plus' module on the Xcode running on the mac_mini_m1 vm machine. I don't know what should I do to do that, please help! Expected results
Actual results
Failed to build iOS app Encountered error while archiving for device. Build failed :| Build id (optional)650261eb0bacb48f40d4e59f |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 11 replies
-
Hi @mohamed-gearbox, It Looks like a known issue with the plugin. Please refer to this GitHub issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you @himesh-cm , I carried out the steps per last comment on GitHub issue you referenced, however it didn't resolve the issue. After committing latest changes to repo and start a new app build, I'm still getting the same error: Failed to build iOS app Encountered error while archiving for device. After removing the ios folder, then running "flutter create .", and running "flutter pub get", the following is the list of dependencies being resolved: (I don't see connectivity_plus in them...do I need to?), The app runs fine on android... Resolving dependencies in ..... (1.8s) The error point to file -> /Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:11:8 When I checked the code part referenced by line number 11: It seems to be failing at the import statement. Do I need to SSH into the instance and import this module to XCode running on m1 VM instance? |
Beta Was this translation helpful? Give feedback.
-
I've commented out reference / use of connectivity_plus module in the flutter project, just to see build on codemagic progress. This resolved the error about connectivity_plus not found, however now I'm getting... Failed to build iOS app Encountered error while archiving for device. Build failed :| I hope someone could shed some light on this, if this could be resolved somehow by SSH into VM instance to carry out in configuration! |
Beta Was this translation helpful? Give feedback.
-
I'm running locally on Windows and VSCode (I have no access to an iMac or Macbook Pro to run ios app locally over XCode - hence using codemagic for this reason). That said, the app is running fine on android emulator and building app bundle aab release file is fine and deployed on Google Play and tried out successfully on android devices. Note: I have included my codemagic.yaml configuration above, is there anything wrong that I made in this file that could be causing this? |
Beta Was this translation helpful? Give feedback.
-
I had exactly the same problem and solved with: Removed any manually created podfile or podfile.lock files from my ios folder on my VScode project. |
Beta Was this translation helpful? Give feedback.
-
Thank you @InnoquestInc, I believe that I'm nearing a solution to my problem. When using: During the flutter build ipa step it's now using com.example.clone as the bundle id, while my actual bundle identifier is com.example.ios and so it is failing with: Archiving com.example.clone... It appears that there was a problem signing your application prior to installation on the device. Verify that the Bundle Identifier in your project is your signing id in Xcode Also try selecting 'Product > Build' to fix the problem. Build failed :| |
Beta Was this translation helpful? Give feedback.
-
I'm just using example.com as an example, as it is industry standard when
sharing test/debug info.
Let's just say my developer profile uses a bundle identifier on Apple
Developer Account e.g. app.mydomain.ios however when the build runs it
references app.mydomain.clone instead. I'm assuming it has to do with
recreating the flutter ios folder inside the /Users/builder/clone as a
build script step.
…On Thu, Sept 28, 2023, 3:28 a.m. Himesh Panchal ***@***.***> wrote:
Have you created developer profiles in the Apple developer account with
bundle id com.example.clone?
Also, it is recommended to use an actual bundle identifier and not a dummy
id like com.example.clone.
—
Reply to this email directly, view it on GitHub
<#2053 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL3G42GDCSZZ3LGF6464GXTX4UKIHANCNFSM6AAAAAA43FZKQY>
.
You are receiving this because you were mentioned.Message ID:
<codemagic-ci-cd/codemagic-docs/repo-discussions/2053/comments/7130362@
github.com>
|
Beta Was this translation helpful? Give feedback.
The problem is when rebuild of ios files is done in script. There is no name give in the command I first suggested and therefore xcode picks of the folder name "clone" as the bundle name. I have fixed this problem with the following script command
flutter create --project-name your_name_here .
I also found that I needed to keep my icons in the ios folder so I removed the script to delete this folder. Instead I just deleted the project.pbxproj file. This is at ios>Runner.xcodeproj>project.pbxproj. I found this to be the only item in the ios folder that was causing failure in the build and needing rebuild on CodeMagic via the above script. Hope this helps... hours of time getting this to wo…