nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

NS DOCTOR Should Be More Helpful in Identifying CocoaPods Issues

Open EdJones opened this issue 4 years ago • 2 comments

My brand new Mac arrived 2 1/2 weeks ago, I still can't create and run a template new app. WARNING: There was a problem with CocoaPods is the hurdle; yet it gives no useful information.

At the very least, it might suggest printing out env results and asking for help. If ns doctor could out the specific fail points and errors encountered with the pod tests, might also be helpful.

EdJones avatar Apr 05 '21 10:04 EdJones

OK, finally got past Doctor. Seemingly, what Doctor should do is what's described in step 2 of this issue, and output the results.

With the actual issue in hand, the user can then do Step 3 of the above, "Fix the real issue".

[In my case it was "missing compatible arch". With the simple solution

sudo arch -x86_64 gem install ffi

Then

arch -x86_64 pod install

]

EdJones avatar Apr 07 '21 12:04 EdJones

I need to do this before the app works.

in Podfile

...

post_install do |installer|
 installer.pods_project.targets.each do |target|
  target.build_configurations.each do |config|
   config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
  end
 end
end

Then execute pod install inside ios folder.

quriosapien avatar Apr 21 '21 09:04 quriosapien