Я закрыл свой Xcode проект и зашел в каталог проекта и набрал
pod init
И он сделал Подфайл как
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Test1' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Test1
end
Обратите внимание на 2-ю строку - платформа: ios, '9.0' , но у меня есть приложение Mac для настольных компьютеров
Поэтому мне пришлось вручную изменить его на платформу : osx, '10 .12 '
# Uncomment the next line to define a global platform for your project
# platform :osx, '10.12'
target 'Test1' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Test1
end
Есть ли возможность напрямую создать его для Mac Desktop App, например pod init --mac или что-то в этом роде?