Pod install muestra el error en cocoapods versión 1.0.0.beta.1


Mi podfile estaba funcionando pero después de actualizar a cocoapods versión 1.0.0.beta.1

Pod install muestra el siguiente error

MacBook-Pro:iOS-TuneIn home$ pod install
Fully deintegrating due to major version update
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- libPods.a
- Pods.debug.xcconfig
- Pods.release.xcconfig
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
- libPods.a
- libPods.a
Deleted 1 empty `Pods` groups from project.
Removing `Pods` directory.

Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Updating local specs repositories
Analyzing dependencies
[!] The dependency `AFNetworking (= 2.6.3)` is not used in any concrete target.
The dependency `MBProgressHUD (~> 0.9.1)` is not used in any concrete target.
The dependency `PDKeychainBindingsController (~> 0.0.1)` is not used in any concrete target.
The dependency `FMDB/SQLCipher` is not used in any concrete target.
The dependency `ZXingObjC (~> 3.1.0)` is not used in any concrete target.
The dependency `SDWebImage (~> 3.7.2)` is not used in any concrete target.
The dependency `SignalR-ObjC (~> 2.0.0.beta3)` is not used in any concrete target.
The dependency `CJPAdController (from `https://github.com/nabeelarif100/CJPAdController.git`)` is not used in any concrete target.
The dependency `ECSlidingViewController (~> 2.0.3)` is not used in any concrete target.
The dependency `VGParallaxHeader` is not used in any concrete target.
The dependency `EMString` is not used in any concrete target.
The dependency `Google/SignIn` is not used in any concrete target.
The dependency `VIPhotoView (~> 0.1)` is not used in any concrete target.
The dependency `EncryptedCoreData (from `https://github.com/project-imas/encrypted-core-data.git`)` is not used in any concrete target.
MacBook-Pro:iOS-TuneIn home$ 

Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'AFNetworking', '2.6.3'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'PDKeychainBindingsController', '~> 0.0.1'
pod 'FMDB/SQLCipher'
pod 'ZXingObjC', '~> 3.1.0'
pod 'SDWebImage', '~>3.7.2'
pod 'SignalR-ObjC','~>2.0.0.beta3'
pod 'CJPAdController', :git => 'https://github.com/nabeelarif100/CJPAdController.git'
pod 'ECSlidingViewController', '~> 2.0.3'
pod 'VGParallaxHeader'
pod 'EMString'
pod 'Google/SignIn'
pod 'VIPhotoView', '~> 0.1'
pod 'EncryptedCoreData', :git => 'https://github.com/project-imas/encrypted-core-data.git'
 175
Author: Muhammad Nabeel Arif, 2016-01-01

12 answers

Tienes que especificar un objetivo para cada pod.

Por ejemplo, si antes tenías tu Podfile escrito así:

pod 'Alamofire', '~> 3.1.4'
pod 'SwiftyJSON', '~> 2.3.2'

Simplemente cámbialo a

target "TargetName" do
    pod 'Alamofire', '~> 3.1.4'
    pod 'SwiftyJSON', '~> 2.3.2'
end
 497
Author: Gasper Kolenc,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-01 17:50:48

Después de los nuevos cambios en cocoapods, debe agregar las siguientes líneas a su podfile.

target "YOUR_PROJECT_NAME" do

     pod "YOUR_POD"

end
 58
Author: Karthik damodara,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-05-05 07:43:46

Del sitio web de los CocoaPods:

CocoaPods proporciona un comando pod init para crear un Podfile con los valores predeterminados inteligentes. Deberías usarlo.

 19
Author: Tr0yJ,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-03-02 23:14:08

Debes agregar target 'your target' do y end alrededor de ti pod como abajo.

target 'your target' do
pod 'AFNetworking', '2.6.3'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'PDKeychainBindingsController', '~> 0.0.1'
end

Más: Puede ser necesario eliminar el dir pods, Podfile.lock y xcworkspace archivo, ejecutar el pod install de nuevo.

 9
Author: Phillip,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-05-28 14:39:44

Tengo el mismo problema hoy. Para la mitigación, inintall cocoapod, a continuación, instalar de nuevo la versión 0.39.

Aquí está el enlace cómo desinstalar: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine

Esta respuesta no corrige la causa raíz, pero puede hacer que se desbloquee. No tengo suficiente reputación para dejar comentarios, así que puse una respuesta aquí para desbloquearte.

 3
Author: cooltch,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-03-20 10:04:20

Estaba esta operación en el podfile:

Fuente ' https://github.com/CocoaPods/Specs.git "

Plataforma: ios,'8.0'

Target "targetprojectname" do

Pod "AFNetworking"

Fin

 2
Author: KBVSMJ,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-08-30 03:29:58

Mi podfile estaba formateado correctamente, así que la respuesta no funcionó para mí. Lo que tenía que hacer era todo lo siguiente: Primero,

  1. gema desinstalar cocoapods
  2. rvm obtener estable auto auto-dotfiles
  3. rvm use ruby-2.1.2
  4. rvm osx-ssl-certs actualizar todo
  5. rvm rubygems latest
  6. fuentes de gemas sudo-r https://rubygems.org /
  7. fuentes de gemas sudo-a http://rubygems.org /
  8. instalar gema cocoapods-v 1.0.0.beta.1 pre pre-V

Tuve errores SSL, errores de tiempo de espera y errores de ruta. Esto arregló todo esto. Estoy agregando esta respuesta con la esperanza de que ayude a alguien - la mayoría de las personas con este problema NO tendrá que pasar por todos estos pasos, y no debería hacerlo si no es necesario. Tenga en cuenta que esto está cambiando el enlace d/l para no usar https, así que asegúrese de volver a cambiarlo una vez que haya resuelto este problema. Este, este, y este Pila La pregunta de desbordamiento me ayudó finalmente a resolver estos problemas.

 1
Author: jungledev,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-11 22:39:06

Tengo el mismo problema, e incluso cambié a

Target "TargetName" do pod 'Alamofire', '~ > 3.1.4' pod 'SwiftyJSON', '~ > 2.3.2' fin

Parece que tiene algún problema de caché, siempre lee la versión antigua del PodFile, incluso si elimino el PodFile, aparece el mismo error. Es raro.

Sin embargo, cuando abro un nuevo terminal , ejecutando pod install, funciona.

 0
Author: Bruce Tsai,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-05-16 02:17:58

1) Añadir y Abrir Podfile en Xcode en lugar de TextEdit o cualquier otro editor. (El resaltado de sintaxis al ver un archivo pod simplificará el proceso de encontrar errores de sintaxis )

2) Agregue las dependencias del proyecto de la siguiente manera en su Podfile

def pods
  pod 'AFNetworking', '~> 2.6'
  pod 'ORStackView', '~> 3.0'
  pod 'SwiftyJSON', '~> 2.3'
end

3) Añadir arriba definir vainas en objetivo del proyecto como sigue

target 'App_Target_Name' do
  pods
end
 0
Author: Sachin Nikumbh,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-07-26 07:55:59

Para la nueva versión de cocoapods i. i 1.0.1

Pod 'SlideMenuControllerSwift' pod "SDWebImage" pod "SearchTextField"

Estaba recibiendo un error:

La dependencia SlideMenuControllerSwift no se utiliza en ningún objetivo concreto. La dependencia SDWebImage no se utiliza en ningún objetivo concreto. La dependencia SearchTextField no se utiliza en ningún objetivo concreto.

Entonces lo cambié a

Target "SU_PROYECT_NAME" do

 pod "YOUR_POD"

Fin

De lo que funcionó

 0
Author: Anil Gupta,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-08-23 12:25:30

El archivo Pod es solo un archivo ruby, debe especificar el pod requerido para todos los destinos. una de las soluciones disponibles es definir todos los pods necesarios en shared_pos, y usarlos para cada destino.

Para ex:

Podfile

platform :ios, '9.0'

use_frameworks!

def Shared_Pods
    pod 'Quick', '0.5.0'
    pod 'Nimble', '2.0.0-rc.1'
end

target 'MyMainTarget' do
    Shared_Pods
end

target 'MyUITests' do
    Shared_Pods
end
 0
Author: Darshana,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-02-09 07:16:02
platform :ios, '8.0'
target 'YourTargetName' do

  ALL PODS HERE

end

Abra el terminal, vaya a la carpeta del proyecto e ingrese el código

pod update
 0
Author: alicanozkara,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-22 12:22:18