codelab-friendlychat-ios icon indicating copy to clipboard operation
codelab-friendlychat-ios copied to clipboard

Build Failures

Open btegge opened this issue 1 year ago • 3 comments

I'm trying to follow this code lab and have encountered the following build errors:

  • File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
  • Linker command failed with exit code 1 (use -v to see invocation)

I tried loading my iPhone 14 Pro simulator prior to building the project and it still failed to build.

I'm using an M1 Pro Mac with Xcode 14.3.

btegge avatar Apr 13 '23 22:04 btegge

Thanks for reporting. In the meantime, you can work around this by updating the codelab app's deployment target to iOS 13.

morganchen12 avatar Apr 14 '23 23:04 morganchen12

After updating the Podfile to use iOS 13 for the deployment target, deintegrating and reinstalling the pods, I'm still seeing the same errors.

I added the following to the end of my Podfile:

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'
               end
          end
   end
end

I received exactly the same build errors.

btegge avatar Apr 18 '23 14:04 btegge

I'll take a look.

morganchen12 avatar Apr 18 '23 16:04 morganchen12