material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

Xcode 14 Undefined symbol: _MDMMotionCurveBezier

Open han-codes opened this issue 3 years ago • 4 comments

Does not compile on Xcode 14 beta 6. Results in build error: Undefined symbol: _MDMMotionCurveBezier

han-codes avatar Sep 07 '22 20:09 han-codes

Same on the Xcode 14 RC. More error details:

Undefined symbols for architecture x86_64:
  "_MDMMotionCurveMakeBezier", referenced from:
      +[MDCActivityIndicatorMotionSpec loopIndeterminate] in MDCActivityIndicatorMotionSpec.o
      +[MDCActivityIndicatorMotionSpec willChangeToDeterminate] in MDCActivityIndicatorMotionSpec.o
      +[MDCActivityIndicatorMotionSpec willChangeToIndeterminate] in MDCActivityIndicatorMotionSpec.o
      +[MDCActivityIndicatorMotionSpec willChangeProgress] in MDCActivityIndicatorMotionSpec.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

justinvallely avatar Sep 08 '22 20:09 justinvallely

Same error with Xcode 14 release, Screenshot 2022-09-13 at 2 36 23 PM

vtniteshgunani avatar Sep 13 '22 09:09 vtniteshgunani

Facing the same issue, but could fix it atleast for my purpose. There is a possibility to install only subspecs (pods) from the main pod and use only them in project. See example. That used to remove this MDMMotionCurveMakeBezier and let us build with Xcode 14.

pod 'MaterialComponents/BottomSheet' pod 'MaterialComponents/TextFields'

mag2007 avatar Sep 22 '22 07:09 mag2007

@CGRect @wenyuzhang666 please could you help a bit on this. I know the project is in maintenance but i also see you are still commiting and fixing issues in the project. Do your have the project building with xcode 14? Could we expect an release just to fix this? Thanks

farfromrefug avatar Sep 22 '22 08:09 farfromrefug

Any news?

Aiuspaktyn avatar Sep 23 '22 15:09 Aiuspaktyn

I have the same error with Xcode 14.0, 14.0.1 and 14.1. Please any soon solution? :(

alexisbarnique avatar Sep 25 '22 01:09 alexisbarnique

To everyone it is actually a podfile issue. You can fix it with something like this:

platform :ios, '11.0'
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] == '8.0'
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
            end
            config.build_settings['SWIFT_VERSION'] = '5.1'
        end
    end
end

The important part is :

 if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] == '8.0'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end

farfromrefug avatar Sep 27 '22 09:09 farfromrefug

That's work for me, but just for compilate the proyect, with pod install undo this config: imagen

alexisbarnique avatar Sep 27 '22 13:09 alexisbarnique

I still get this issue and have to raise the Minimum Deployment even higher to avoid it. Still happens for me on 14.0. Had to set it to 16.0 but then made a test build where I forgot to set it back and the build crashed for every not on iOS 16.

Good times.

tylerjames avatar Nov 03 '22 14:11 tylerjames