A
A
Andrew2021-01-21 21:04:21
Swift
Andrew, 2021-01-21 21:04:21

How to fix 'framework not found' in Xcode 12?

Friends, I can not connect anything from Cocoapods.
I do the install, then the project does not compile. Swears:

ld: warning: directory not found for option '-F/Users/andrey/Library/Developer/Xcode/DerivedData/Tabs-dkesoluhsdqprmaoidjlnqlrzwsp/Build/Products/Debug-iphonesimulator/MLPAutoCompleteTextField'
ld: framework not found MLPAutoCompleteTextField
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Tried to put CCAutoComplete the same thing.
I tried to create a clean project, the same thing :(

Xcode Version 12.2 (12B45b)
Pod 1.10.1

I found this solution on developer.apple, but it didn't help either.
Solved by adding arm64 to Excluded Architectures (EXCLUDED_ARCHS) in the Project settings. Looks like we need to do this until the pod in question supports arm64.


I did this:
6009c0fc2284f522273496.jpeg

Podfile:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Tabs' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Tabs
#pod 'CCAutocomplete'
pod 'MLPAutoCompleteTextField'

end

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2021-01-21
@G_r_i_n_v_i_c_h

Opened .xcworkspace instead of .xcodeproj and everything came to life

D
Dima Grib, 2021-01-21
@YeahGarage

Try
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question