I'm trying to build an iOS project in Unity 2019.3.14f1 but when I tried to install CocoaPods using /Assets/External Dependency Manager/Install Cocoapods it returns a warning:
gem install cocoa pods --user-install
WARNING: You don't have /Users/danieoquelis/.gem/ruby/2.6.0/bin in your PATH,
gem executables will not run
.....
Done installing documentation for cocoapods after 2 seconds
1 gem installed
I went to my terminal which uses '.zsh' and I added the PATH in the file '.zshrc' and '.zshenv' then I did 'source' to the files and restarted Unity to try to build the project again but it only generates xcodeproject without xcworkspace or Podfile.
I tried to uninstall cocoapods from the terminal and I installed it again and from the terminal the warning doesn't appear and when I do 'echo $PATH' it returns:
/Users/danieloquelis/.gem/ruby/2.6.0/bin:/Users/danieloquelis/Library/Android/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
I don't know if Unity doesn't read the shell based on 'zsh' and it only works with 'bash' I update iOS Resolver, Cocoa Pods, Unity, I don't know what else I can do.
CocoaPods 1.9.3
Ruby 2.6.0
iOS Resolver 1.2.155
Unity 2019.3.14f1
macOS Catalina 10.15
Thanks for your help!!!
I fixed it, I forgot to add ARKit Unity Plugin.
Related
Only when using cocoapods(after run pod install), generamba setup failes with the following message when settin path to a .xcodeproj.
The path to a .xcodeproj file of the project is 'GrambaSample.xcodeproj'. Do you want to use it? (yes/no) yes
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object.rb:321:in `configure_with_plist': [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa. (RuntimeError)
This error won't appear is not using cocoapods.
How can I be able to setup Generamba while using cocoapods.
To avoid this issue you should update CocoaPods to the latest beta version by executing
gem install cocoapods --pre
Latest beta version of CocoaPods now using inputFileListPaths and outputFileListPaths.
More info here See .xcfilelist Support
Hi when i tried to platform add ios showing the following error,
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.leniko.fuel-buddy
Name: Fuel Buddy
iOS project created with cordova-ios#4.4.0
Installing "cordova-plugin-app-version" for ios
Installing "cordova-plugin-apprate" for ios
Plugin dependency "cordova-plugin-dialogs#1.3.0" already fetched, using that version.
Installing "cordova-plugin-dialogs" for ios
Plugin dependency "cordova-plugin-globalization#1.0.4" already fetched, using that version.
Installing "cordova-plugin-globalization" for ios
Cross-platform AppRate plugin for Cordova / PhoneGap
Installing "cordova-plugin-camera" for ios
Plugin dependency "cordova-plugin-compat#1.1.0" already fetched, using that version.
Installing "cordova-plugin-compat" for ios
Plugin "cordova-plugin-compat" already installed on ios. Making it top-level.
Installing "cordova-plugin-console" for ios
Installing "cordova-plugin-device" for ios
Plugin "cordova-plugin-dialogs" already installed on ios. Making it top-level.
Installing "cordova-plugin-file" for ios
Plugin dependency "cordova-plugin-compat#1.1.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on ios.
The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Installing "cordova-plugin-file-transfer" for ios
Plugin dependency "cordova-plugin-file#4.3.0" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Plugin "cordova-plugin-globalization" already installed on ios. Making it top-level.
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-plugin-x-socialsharing" for ios
Installing "cordova-plugin-x-toast" for ios
Installing "ionic-plugin-keyboard" for ios
Installing "phonegap-plugin-push" for ios
Failed to install 'phonegap-plugin-push': undefined
Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ repo Manage spec-repositories
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
I had installed cocoapods and run the above command with sudo and without sudo.
I had solved the problem by changing the plugin phonegap-push with Firebase plugin and now its working fine in android as well as IOS. Please go with the cordova-firebase plugin version 1.22.
I am currently following the small and brief introduction to Swift Vapor by following their "Hello World" tutorial on their website. However I keep getting an error from swift-package when I try to build the project where it shows the following.
$ vapor build
No .build folder, fetch may take a while...
Fetching Dependencies [Failed]
Error: swift-package: error: unknown command: --enable-prefetching
I cannot seem to find out how to resolve this online. Anybody have any idea?
you have not mentioned your environment, so i'm giving solution for macOS.
I had the same issue, my swift version is 3.0.2 and vapor toolbox version is 1.0.9,
I tried the following thing to make it work
get into your project directory
create xcode project with command
swift package generate-xcodeproj
open xcode project
Select your scheme as App like this
and then build and run app
hope this helps!!
Make sure that you're using the correct command line tools for the Swift Version that you're using.
You can check from Xcode > Preferences > Locations > Command Line Tools
For me, using swift 3.0.2, vapor build command doesn't work neither.
However using swift 3.1.0, vapor build command works well.
My Vapor toolbox version is v1.1.0
I had the same problem, and I had Swift 3.1 installed. I deleted old version completely and installed new one and now it's building fine.
Try
rm -rf /usr/local/bin/vapor
brew tap vapor/homebrew-tap

than
brew install vapor
or
brew link vapor
if you have installed a new version previously.
I am using XCode 8.3 and I am trying to Run my project which is connected with link and now I have a XCode Error: Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1
So my question is how to update the version of the framework?
I downloaded this framework from the link that I've posted above.
I think that you need to update CocoaPods to a newer version supports XCode 8 (CocoaPods 1.1.0 or newer):
sudo gem install cocoapods
Then do a pod update to fix your dependencies that are not linking:
pod update
Delete the DerivedData folder for your project and rebuild, the link error should be gone.
I'm running macOS 10.12.3 with Xcode 8.3.
I cannot build any macOS Swift projects with it.
If I create a new Cocoa application Xcode project and set it to use Swift, when I try to compile it, I immediately get the following error in the "check dependencies" phase:
error: There is no SDK with the name or path '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
I have no idea what's going wrong!
The only clue I have is that earlier I created a symlink with the path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk that pointed to MacOSX.sdk in order to fix an issue where an older build of Qt that required an SDK with that path. However, deleting the symlink has no effect.
I can build Swift projects that targeting other platforms like iOS. Just not macOS.
Help!
try running this command then reopening the project
(Xcode uses xtools in the command line to build its projects)
sudo xcode-select -switch /path/to/file/
(by default the path is)/Applications/Xcode.app/
look at this pic
saw it here yesterday