Replies: 4 comments
-
update: although a bit crude, I opened cocoapods/config.rb and changed cache_root to the constant 'c:/x' after creating that folder. After that, pod update went through.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods i [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods i |
Beta Was this translation helpful? Give feedback.
-
Could this be related to flutter/flutter#66222? I wonder if you could temporarily borrow a Mac (or rent a VM online) and diff the Xcode project you get there from the one you get on Windows. |
Beta Was this translation helpful? Give feedback.
-
That would probably be a solution, yes, but I am trying to avoid that for now. I really want the approach of cross-platform and no-need for mac would work end-to-end using flutter and codemagic (and, hopefully, little platform-specific knowledge). |
Beta Was this translation helpful? Give feedback.
-
Here's what I did to finally get face detection working, using only my windows host and codemagic to build the iOS version.
to
this is based on suggestion from Coeur and will cause codemagic stop complaining about the deployment target. Turns out just setting the platform in the top of the podfile is not enough.
That's it. Turns out that having the correct pod file is enough and there is no need to run cocoapods at all. Codemagic runs its own cocoapods. If you had previously run it, then erase the podfile.lock file and push that deletion before building with codemagic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm developing an app on Windows 10 and using firebase_ml_vision for face detection.
This works perfectly when running on an Android device.
For creating the iOS build I use Codemagic since I don't have a mac.
The app compiles and works just fine on an iPhone, including other firebase plugins, and I have changed the target platform to 9 to pass compilation.
However, I am unable to detect faces on iOS because I haven't added the face model pod.
I tried to add the pod using the instructions for installing Ruby and Cocoapods and was able to install and verify the toolchain. I created a podfile in the ios folder but when I issue pod update or pod install It fails, and it seems to be because of the file path limit of windows.
I removed the windows limit of the path length in my group policy but this still happens, so I guess Cocoapods doesn't use the windows long path capabilities.
This is the error I see:
Errno::ENOENT - No such file or directory @ dir_s_mkdir - C:/Users/username/Library/Caches/CocoaPods/Pods/Release/Firebase/6.34.0-c23a3/FirebaseInAppMessaging/Tests/Integration/FunctionalTestApp/ExternalAppExample/fiam-external-ios-testing-app/fiam-external-ios-testing-app/Assets.xcassets/AppIcon.appiconset
When I go to the "Assets.xxassets" and try to create any folder, I get an OS error that the path is too long so that's probably the reason this fails.
If I had some way to force Cocoapods not to use such a long base directory that would have probably been fine but I couldn't find such an option.
I tried other shells like PWSH (core, v7.0.3) and git bash.
Is there some other way I can add the face model for iOS on windows?
here is my podfile
Beta Was this translation helpful? Give feedback.
All reactions