Avatar
Mac Catalystを利用してiPadアプリをMacアプリにしていっていみる。
2:46 AM
まずは、さらのプロジェクトにMacチェックでMacで動くか確認。→動く
2:48 AM
pod 'Firebase/Analytics'でFireBaseを追加
2:48 AM
→えらーいっぱい。
2:50 AM
とりあえず、この問題から解決していきながら、Catalystを理解していきたいと思う。 もちろん、Catalystに関することなら、なんでも歓迎です。
2:50 AM
If you’ve tried to port an app using Mac Catalyst, you have likely been confronted by a rather common problem: some pods are not compatible with macOS. Crashlytics and Firebase are commonly the first to pop out an error on the screen because of their widespread usage.
2:51 AM
'post_install do |installer| installer.pods_project.targets.each do |target| if target.name == "Pods-[Name of Project]" puts "Updating # OTHER_LDFLAGS to OTHER_LDFLAGS[sdk=iphone]" target.build_configurations.each do |config| xcconfig_path = config.base_configuration_reference.real_path xcconfig = File.read(xcconfig_path) new_xcconfig = xcconfig.sub('OTHER_LDFLAGS =', 'OTHER_LDFLAGS[sdk=iphone] =') File.open(xcconfig_path, "w") { |file| file << new_xcconfig } end end end end'