Comments (5)
Removing the ios/Podfile.lock
folder, flutter clean
, then flutter run
again did the trick.
from flutter_plugin_appcenter.
A little more on this. Some people have argued the way to solve this in other places is to put this in the podsfile:
pre_install do |installer|
workaround for CocoaPods/CocoaPods#3289
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
When I do that, I does get past the pod install but then fails on compile:
Xcode build done. 10.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
1 warning generated.
/Users/davidwhite/development/flutter/.pub-cache/hosted/pub.dartlang.org/appcenter_analytics-0.2.1/ios/Classe
s/AppcenterAnalyticsPlugin.m:1:9: warning: non-portable path to file '"AppcenterAnalyticsPlugin.h"';
specified path differs in case from file name on disk [-Wnonportable-include-path]
#import "AppCenterAnalyticsPlugin.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
"AppcenterAnalyticsPlugin.h"
1 warning generated.
Undefined symbols for architecture arm64:
"OBJC_CLASS$_MSAnalytics", referenced from:
objc-class-ref in AppcenterAnalyticsPlugin.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture armv7:
"OBJC_CLASS$_MSAnalytics", referenced from:
objc-class-ref in AppcenterAnalyticsPlugin.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning build
note: Constructing build description
Encountered error while building for device.
from flutter_plugin_appcenter.
I encountered the same problem.
After researching for several days, I finally found the solution.
The point is to make sure that the pods for appcenter, appcenter_analytics or appcenter_crashes are all built as static library.
from flutter_plugin_appcenter.
@willyliu do you have info on how to do this when you are not familiair with iOS dev?
from flutter_plugin_appcenter.
@dwhiteddsoft Did you find a solution for that issue?
from flutter_plugin_appcenter.
Related Issues (17)
- Example App occurred Unhandled exception: type 'Future<dynamic>' is not a subtype of type 'Future<String>' HOT 1
- Crash in Android not working HOT 1
- Undefined symbols for architecture x86_64 HOT 1
- all import statements fail HOT 1
- 'AppCenter/AppCenter.h' file not found HOT 15
- Upgrade android SDK to latest 2.4.0 HOT 1
- flutter build apk fails after flutter upgrade HOT 7
- I want to be a mantainer HOT 2
- I want to become a maintainer HOT 3
- AppSecretDenied - wrong format ? HOT 1
- Track Flutter errors (non crashes)
- Update SDK to the flutter 2.5
- The 'Pods-Runner' target has transitive dependencies HOT 6
- Dart SDK 2 version? HOT 2
- Crash Reporting HOT 6
- PushNotification ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_plugin_appcenter.