cocoapod 를 통해 FSCalendar 프레임워크를 install 했습니다
그런데 크게 다음과 같은 오류가 발생했습니다
오류
프로젝트 네비게이터의 프레임워크들이 빨간글씨로 보이는 오류

해결법
1. 먼저 포드파일은 다음과 같이 수정하고, 다시 pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'TodayDiary' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TodayDiary
pod 'FSCalendar'
end
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
config.build_settings.delete('GENERATE_INFOPLIST_FILE') if target.name.start_with?('FSCalendar')
end
end
end
end
2. 프레임워크 경로 변경
설치는 되었지만 이렇게 빨갛게 나오는 경우는 설치하는 과정에서 cocoapod 의 문제이거나 경로문제라고 하네요
아무리 cocoapod 를 pod deintegrate, 그리고 pod install 해주더라도 문제가 그대로여서 직접 경로를 바꿔봤습니다


위 사진처럼 멀쩡한 프레임워크를 오류가 발생한 위치로 드래그 해주고 빨간 프레임워크는 직접 삭제해줬습니다
Foundation, QuartzCore, UIKit 은 직접 프레임워크를 추가해줬습니다

이렇게 하면 해결!
테스트로 캘린더를 실행해보았는데 이렇게 잘 나오네용

'iOS | Swift' 카테고리의 다른 글
cocoapod 를 통해 FSCalendar 프레임워크를 install 했습니다
그런데 크게 다음과 같은 오류가 발생했습니다
오류
프로젝트 네비게이터의 프레임워크들이 빨간글씨로 보이는 오류

해결법
1. 먼저 포드파일은 다음과 같이 수정하고, 다시 pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'TodayDiary' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TodayDiary
pod 'FSCalendar'
end
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
config.build_settings.delete('GENERATE_INFOPLIST_FILE') if target.name.start_with?('FSCalendar')
end
end
end
end
2. 프레임워크 경로 변경
설치는 되었지만 이렇게 빨갛게 나오는 경우는 설치하는 과정에서 cocoapod 의 문제이거나 경로문제라고 하네요
아무리 cocoapod 를 pod deintegrate, 그리고 pod install 해주더라도 문제가 그대로여서 직접 경로를 바꿔봤습니다


위 사진처럼 멀쩡한 프레임워크를 오류가 발생한 위치로 드래그 해주고 빨간 프레임워크는 직접 삭제해줬습니다
Foundation, QuartzCore, UIKit 은 직접 프레임워크를 추가해줬습니다

이렇게 하면 해결!
테스트로 캘린더를 실행해보았는데 이렇게 잘 나오네용
