Giter VIP home page Giter VIP logo

Comments (5)

HugoHeneault avatar HugoHeneault commented on May 29, 2024 4

Removing the ios/Podfile.lock folder, flutter clean, then flutter run again did the trick.

from flutter_plugin_appcenter.

dwhiteddsoft avatar dwhiteddsoft commented on May 29, 2024

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.

willyliu avatar willyliu commented on May 29, 2024

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.

boylenssen avatar boylenssen commented on May 29, 2024

@willyliu do you have info on how to do this when you are not familiair with iOS dev?

from flutter_plugin_appcenter.

HugoHeneault avatar HugoHeneault commented on May 29, 2024

@dwhiteddsoft Did you find a solution for that issue?

from flutter_plugin_appcenter.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.