Local specs:
MacOS v13.0.1
xCode 14.1
I've a flutter project that uses Flutter InAppWebview package
flutter_inappwebview: ^5.7.1
, and its working as expected, but when I'm trying to build the project using Azure pipeline, I get this error:
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Users/runner/hostedtoolcache/Flutter/3.3.8/macos/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.7.1+2/ios/Classes/MyCookieManager.swift:293:43
As you can see, the pipeline is using another version from flutter_inappwebview package which is 5.7.1+2 !
Any idea why or how I can reset this .pub-cache on the azure pipeline?
In a similar question on how to clear the .pub-cache folder for flutter #CopsOnRoad's answer explains flutter has the following command for clearing the cache.
flutter pub cache clean
Run this command in a task before starting the actual build.
Related
Hello flutter developer i created app on flutter which running on simulator successfully but now i am trying to create archive for uploading app on apple store i am getting this erorr
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Command CompileSwiftSources failed with a nonzero exit code
i tried everything all this steps.
in build setting swift-compiler code generation->compilation mode incremental
pod deintegrate and resinstall
pod update
delete all xcode drive data tried again but everything failed please help it is very frustrating for me
also check image below
This is the error I get when I try to build my Flutter app with Xcode 12.5.1. I can run the app on the Simulator without any problem, my friend with an Intel MacBook Pro can build it but I can't with my M1 processor.
After trying many things on my main project, I've decided to build an empty project in order to know where the problem was. And I still have the same error when I try to build a just created project.
I have noticed this line in the build target runner logs : export arch\=undefined_arch
Of course I have followed several topics about excluded architectures without success.
I once saw a topic that told to change the Build System to Legacy in the Workspace Settings. After doing that, I have an other error I can't resolve :
Command /bin/sh failed with exit code 1, but the export arch is now set to armv7.
I absolutely don't know why I can't build even a new Flutter project on my M1 Mac. Is it a problem with this undefined architecture ?
Here is more information about my configuration :
Flutter doctor
New Build System logs
Legacy Build System logs
I had the same error, you need to reinstall flutter on your device. Just remove the sdk folder or if you want to clean correctly you need to do that in you Flutter install directory :
git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor
I tried to add to my flutter app services like firebase and Firestore.
I've already done this on windows, now I am on Mac.
I followed the official guide at this link
When I build the android app it works fine, but on iOS I keep getting errors like this
How can I fix this?
Already tried to disable 'Use map Header' option, and to boot on legacy emulator.
I have the following configuration for Firestore in iOS:
pubspec.yaml
firebase_core: ^0.4.1+3
cloud_firestore: ^0.12.10
# other dependencies
execute the following command:
flutter pub get
Download the GoogleService-Info.plist file, and copy it to the path nameApp/ios/Runner
Update Firebase with the command: pod update Firebase
NOTE: at some point in a project I had problems with firestore and what I had to do was the following, execute command flutter clean
in the following link it can be a video on youtube where they make an explanation of the firebase configuration for iOS link
When I try to run the project in simulator, I get the error:
Failed to create plugin placeholder for
/Users/zc/Library/Developer/Xcode/DerivedData/iPhoneHandheldACT-cwlfykavlwlqwlhbecjubziblyzi/Build/Products/Debug-iphonesimulator/iPhoneHandheldACT.app/PlugIns/CallerID.appex
The build is successful, but run gives me the error.
This happened after I started re-organising the files in my project.
I tried deleting the derived data, clean and restarting the Xcode but it didn't help.
Removing the CallerID.apex from the embed framework section in Build Settings fixed this error.
For me the issue was that the version and bundle version of my widget configuration intent target didn't match the versions of the widget and the app.
Im building the Phonegap App using Phonegap Build.
Phonegap Build cant create Android APK, build is failing with below error, Morning I was able to create the APK but now below error is thrown. Note that there is no config file changes between morning and now.
Please help
App Id: 2074580
https://build.phonegap.com/apps/2074580/builds
Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find com.android.support:support-v4:23.4.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.jar
file:/android-sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/suppo rt-v4-23.4.0.pom
file:/android-sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/suppo rt-v4-23.4.0.jar
file:/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/suppor t-v4-23.4.0.pom
file:/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/suppor t-v4-23.4.0.jar
Required by:
:project:unspecified
I had a similar problem with this plugin. I needed to update some android libraries. This command solved it all for me:
android update sdk --no-ui --all --filter "extra-android-m2repository"
If you don't have the android command in your command line, you can navigate to the SDK directory.
Answered here; https://github.com/phonegap/phonegap-plugin-push/issues/928. You need to switch back to Cordova version 1.6.3 or 1.6.4. But I just checked and upgrading to the latest nightly build also seems to fix it. When working in Visual Studio, clear the cordova cache too (after setting the correct version):
Tools => Options => Tools for Apache Cordova => Clear Cordova Cache.