Question by
claduedev · Apr 12, 2019 at 09:44 AM ·
ioserror messagemacosx
Unable to build for iOS on any Mac
I'm having a very difficult issue when trying to build my app for iOS on any Mac I have. I've tried three different ones with fresh Unity installs of 2018.3.12.f1. I have attempted to build on a fresh project just containing the official Google Mobile Ads unity package. When I attempt to build, it claims "Success", but I receive the error that follows in the console. Any tips would be greatly appreciated.
iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.
After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
pod install output:
Analyzing dependencies
Downloading dependencies
Installing Google-Mobile-Ads-SDK (7.42.2)
Installing GoogleAppMeasurement (5.8.1)
Installing GoogleUtilities (5.7.0)
Installing nanopb (0.3.901)
Generating Pods project
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/Users/devguy/.rvm/gems/ruby-2.6.2/bin/pod install
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.7.0.beta.3 (at ?)
Ruby : ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18] (at ?)
RubyGems : 3.0.3 (at ?)
Host : Mac OS X 10.14.4 (18E226) (at ?) (at ?)
Xcode : () (at ?) (at ?)
Git : git version 2.20.1 (Apple Git-117) (at ?)
Ruby lib dir : /Users/devguy/.rvm/rubies/ruby-2.6.2/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 3a3c3f76a3e7d204d26ccfcee8e461166bd0d710
```
### Plugins
```
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.3.1
cocoapods-try : 1.1.0
```
### Podfile
```ruby
source 'https://github.com/CocoaPods/Specs'
source 'https://github.com/CocoaPods/Specs.git'
install! 'cocoapods', :integrate_targets => false
platform :ios, '9.0'
target 'Unity-iPhone' do
pod 'Google-Mobile-Ads-SDK', '~> 7.41'
end
```
### Error
``` (at ?)
Errno::ENOENT - No such file or directory @ rb_file_s_symlink - (../../../GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Internal/GULAppDelegateSwizzler_Private.h, /Users/devguy/iOS Builds/TESTIOS/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler_Private.h) (at ?)
/Users/devguy/.rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/fileutils.rb:363:in `symlink'
/Users/devguy/.rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/fileutils.rb:363:in `block in ln_s'
/Users/devguy/.rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/fileutils.rb:1571:in `fu_each_src_dest0'
/Users/devguy/.rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/fileutils.rb:361:in `ln_s'
/Users/devguy/.rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/fileutils.rb:380:in `ln_sf'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/sandbox/headers_store.rb:139:in `add_file'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/sandbox/headers_store.rb:112:in `block in add_files'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/sandbox/headers_store.rb:111:in `map'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/sandbox/headers_store.rb:111:in `add_files' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:166:in `block (4 levels) in link_headers' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:165:in `each' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:165:in `block (3 levels) in link_headers' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:164:in `each' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:164:in `block (2 levels) in link_headers' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:156:in `each'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:156:in `block in link_headers'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/user_interface.rb:145:in `message'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:155:in `link_headers'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:51:in `install!'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:99:in `block in install_file_references'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/user_interface.rb:145:in `message'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:97:in `install_file_references'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:17:in `generate!'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer.rb:295:in `block in create_and_save_projects'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer.rb:290:in `create_and_save_projects'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer.rb:281:in `generate_pods_project'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/installer.rb:159:in `install!'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/command/install.rb:51:in `run'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/command.rb:52:in `run' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/gems/cocoapods-1.7.0.beta.3/bin/pod:55:in `<top (required)>' (at ?)
/Users/devguy/.rvm/gems/ruby-2.6.2/bin/pod:23:in `load'
/Users/devguy/.rvm/gems/ruby-2.6.2/bin/pod:23:in `<main>'
/Users/devguy/.rvm/gems/ruby-2.6.2/bin/ruby_executable_hooks:24:in `eval'
/Users/devguy/.rvm/gems/ruby-2.6.2/bin/ruby_executable_hooks:24:in `<main>'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_file_s_symlink+-+%28..%2F..%2F..%2FGoogleUtilities%2FGoogleUtilities%2FAppDelegateSwizzler%2FInternal%2FGULAppDelegateSwizzler_Private.h%2C+%2FUsers%2Fdevguy%2FiOS+Builds%2FTESTIOS%2FPods%2FHeaders%2FPrivate%2FGoogleUtilities%2FGULAppDelegateSwizzler_Private.h%29&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
[0m
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Searching for inspections failed: undefined method `map' for nil:NilClass
pod repo update output:
Updating spec repo `master`
$ /usr/bin/git -C /Users/devguy/.cocoapods/repos/master fetch origin --progress
$ /usr/bin/git -C /Users/devguy/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/devguy/.cocoapods/repos/master reset --hard origin/master
HEAD is now at 054e23ebc20 [Add] III18N 0.6.0
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
[0m
remote: Enumerating objects: 15, done. (at ?)
remote: Counting objects: 6% (1/15)
remote: Counting objects: 13% (2/15)
remote: Counting objects: 20% (3/15)
remote: Counting objects: 26% (4/15)
remote: Counting objects: 33% (5/15)
remote: Counting objects: 40% (6/15)
remote: Counting objects: 46% (7/15)
remote: Counting objects: 53% (8/15)
remote: Counting objects: 60% (9/15)
remote: Counting objects: 66% (10/15)
remote: Counting objects: 73% (11/15)
remote: Counting objects: 80% (12/15)
remote: Counting objects: 86% (13/15)
remote: Counting objects: 93% (14/15)
remote: Counting objects: 100% (15/15)
remote: Counting objects: 100% (15/15), done. (at ?) (at ?)
remote: Compressing objects: 12% (1/8)
remote: Compressing objects: 25% (2/8)
remote: Compressing objects: 37% (3/8)
remote: Compressing objects: 50% (4/8)
remote: Compressing objects: 62% (5/8)
remote: Compressing objects: 75% (6/8)
remote: Compressing objects: 87% (7/8)
remote: Compressing objects: 100% (8/8)
remote: Compressing objects: 100% (8/8), done. (at ?) (at ?)
remote: Total 9 (delta 6), reused 0 (delta 0), pack-reused 0 (at ?)
From https://github.com/CocoaPods/Specs
3a3c3f76a3e..054e23ebc20 master -> origin/master (at ?)
UnityEngine.Debug:LogError(Object) (at ?)
Google.Logger:Log(String, LogLevel) (at /usr/local/google/home/cleoschneider/google-play-resolver/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:91)
Google.IOSResolver:Log(String, Boolean, LogLevel) (at /usr/local/google/home/cleoschneider/google-play-resolver/unity-jar-resolver/source/IOSResolver/src/IOSResolver.cs:938)
Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String) (at /usr/local/google/home/cleoschneider/google-play-resolver/unity-jar-resolver/source/IOSResolver/src/IOSResolver.cs:2140) (at ?)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at ?)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612195325im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 5.3.1: Baked scene crashes Editor on Mac 4 Answers
Off the Sticks Camera,Off the Clicks 0 Answers
Camera blanks on highest resolution of Apple devices with viewport other than 0,0,1,1 0 Answers
iPhoneBundleIdentifier has not been set up correctly 1 Answer
Running projects (Unity/Xcode) from an external SD card 0 Answers