New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when pod-updating: [!] ERROR: Parsing unable to continue due to parsing error: #3466
Comments
@colasjojo could you please share the output of running |
|
The issue there seems to be that there's a line break due to some sort of wrapping (at line 72) |
Thanks, I look more closer. You mean line 72 of the Podfile.lock ? So, is it a bug? |
I don't see how we could've serialized that lockfile, so any steps to reproduce would be incredibly helpful. |
I have tried to remove some of the line breaks... but I still have the same error :/ |
There's not really much we can do unless you provide us with a way to reproduce that broken lockfile being created, sorry. |
OK, I managed to remove the error. I used to organize my pods with a lot of subspecs, because I wanted to keep the directory structure. But, this is unnecessary since I had some specific dependencies in these subspecs (for example: I need this "development pod" only for these class; since all my classes were separated into subspecs, I was able to say: "the dependency is for this subspec only"). Now, these dependencies are "global". I suspect the error came from there. |
Hi @segiddins. I have this bug again. Do you have any advice so that I can find where is comes from? Is it a problem of Thanks. |
I have just found that when I remove one of my pod, I don't have the problem anymore. Here is the podspec of the "bad" pod. This pod shares resources for Pod::Spec.new do |s|
s.name = "MyCBDModelForMyMaths"
s.version = "1.2.3"
s.summary = "A collection of classes to factor my `CoreData` Model. "
s.description = <<-DESC
A collection of classes to factor my `CoreData` Model.
* it also includes the mogenerator thing.
DESC
s.author = { "Colas" => "xxxxxxx@gmail.com" }
s.homepage = "https://xxxxxgit"
s.license = { :type => 'MIT'}
s.source = { :git => 'xxxx.git',
:tag => "#{s.version}" }
s.source_files = 'Classes/**/*.{h,m}'
s.resources = 'Classes/Classes_for_MyMathsModel/MyMathsModel.xcdatamodeld',
'Classes/TreeData/Data/*.treeData',
'Classes/**/*.xcmappingmodel'
s.dependency 'MyCBDUniversalModel'
s.dependency 'CBDTreeData'
s.exclude_files = 'Classes/Classes_for_AppDataModel/**/*.{h,m}',
'Classes/Categories_for_LatexStrings/**/*.{h,m}',
'Classes/Categories_for_OSX_interface/**/*.{h,m}',
'Classes/Other_classes/**/*.{h,m}',
'Classes/Old_Model/**/*',
'Classes/Classes_for_MyMathsModel/**/*.{h,m}'
s.subspec 'Classes_for_MyMathsModel' do |ss|
ss.source_files = 'Classes/Classes_for_MyMathsModel/**/*.{h,m}'
ss.resource = 'Classes/Classes_for_MyMathsModel/AppDataModel.xcdatamodeld'
end
s.subspec 'Classes_for_AppDataModel' do |ss|
ss.source_files = 'Classes/Classes_for_AppDataModel/**/*.{h,m}'
ss.resource = 'Classes/Classes_for_AppDataModel/AppDataModel.xcdatamodeld'
ss.platform = :ios
end
s.subspec 'Categories_for_LatexString' do |ss|
#########################################################
# These classes are only for creation of the .tex files #
#########################################################
ss.source_files = 'Classes/Categories_for_LatexStrings/**/*.{h,m}'
#ss.dependency 'MyCBDLatexFramework'#, '~>2.0'
ss.platform = :osx
end
s.subspec 'Categories_for_OSX_interface' do |ss|
#########################################################
# These classes are only for creation of the .tex files #
#########################################################
ss.source_files = 'Classes/Categories_for_OSX_interface/**/*.{h,m}'
ss.framework = 'AppKit'
ss.platform = :osx
end
s.subspec 'Other_classes' do |ss|
ss.source_files = 'Classes/Other_classes/*.{h,m}'
ss.subspec 'NSEntityDescription+CBDIdManager' do |sss|
sss.source_files = 'Classes/Other_classes/NSEntityDescription+CBDIdManager/**/*.{h,m}'
sss.frameworks = 'CoreData'
end
ss.subspec 'CBDLatexString+QuestionsForExercisesForItemQuestion' do |sss|
#########################################################
# These classes are only for creation of the .tex files #
#########################################################
sss.platform = :osx
sss.source_files = 'Classes/Other_classes/CBDLatexString+QuestionsForExercisesForItemQuestion/**/*.{h,m}'
end
end
# s.source_files = 'Classes/MyCBDModelForMyMaths.h'
# s.subspec 'Classes_for_MyMathsModel' do |ss|
# ss.subspec 'Auto-generated_classes_for_MyMathsModel' do |sss|
# sss.source_files = 'Classes/Classes_for_MyMathsModel/**/_*.{h,m}'
# end
# ss.subspec 'My_subclasses_for_MyMathsModel' do |sss|
# sss.source_files = 'Classes/Classes_for_MyMathsModel/**/[A-Z]*.{h,m}'
# end
# ss.resource = 'Classes/Classes_for_MyMathsModel/MyMathsModel.xcdatamodeld'
# end
# s.subspec 'TreeData' do |ss|
# ss.subspec 'MyCBDTopicsManager' do |sss|
# sss.source_files = 'Classes/TreeData/MyCBDTopicsManager/**/*.{h,m}'
# end
# ss.subspec 'MyCBDAcademicLevelsManager' do |sss|
# sss.source_files = 'Classes/TreeData/MyCBDAcademicLevelsManager/**/*.{h,m}'
# end
# ss.subspec 'MyCBDCompetitionsManager' do |sss|
# sss.source_files = 'Classes/TreeData/MyCBDCompetitionsManager/**/*.{h,m}'
# end
# ss.subspec 'MyCBDCommentaryTypesManager' do |sss|
# sss.source_files = 'Classes/TreeData/MyCBDCommentaryTypesManager/**/*.{h,m}'
# end
# ss.resources = 'Classes/TreeData/Data/*.treeData'
# end
# s.subspec 'MyParametersManager' do |ss|
# ss.source_files = 'Classes/MyParametersManager/**/*.{h,m}'
# ss.dependency 'MyCBDUniversalModel'
# ss.dependency 'CBDTreeData'
# end
# s.subspec 'Migration' do |ss|
# ss.subspec 'MHWMigrationManager' do |sss|
# sss.source_files = 'Classes/Migration/MHWMigrationManager/**/*.{h,m}'
# end
# # ss.subspec 'MyCBDMyMathsMigrationManager' do |sss|
# # sss.source_files = 'Classes/Migration/MyCBDMyMathsMigrationManager/**/*.{h,m}'
# # end
# ss.subspec 'MappingModels' do |sss|
# sss.resources = 'Classes/Migration/MappingModels/**/*.xcmappingmodel'
# end
# ss.subspec 'CustomClassesForMappingModels' do |sss|
# sss.subspec 'From_3_2_to_4_0' do |ssss|
# ssss.source_files = 'Classes/Migration/CustomClassesForMappingModels/From_3_2_to_4_0/*.{h,m}'
# end
# end
# end
# s.subspec 'Classes_for_AppDataModel' do |ss|
# ss.subspec 'Auto-generated_classes_for_AppDataModel' do |sss|
# sss.source_files = 'Classes/Classes_for_AppDataModel/**/_*.{h,m}'
# end
# ss.subspec 'My_subclasses_for_AppDataModel' do |sss|
# sss.source_files = 'Classes/Classes_for_AppDataModel/**/*.{h,m}'
# end
# ss.resource = 'Classes/Classes_for_AppDataModel/AppDataModel.xcdatamodeld'
# ss.platform = :ios
# end
s.dependency 'CBDFoundationToolKit'#, '~>1.1'
s.dependency 'CBDCoreDataToolKit'#, '~>3.0'
#s.dependency 'MyCBDLatexFramework'#, '~>2.0'
##########################
# My Macros + Lumberjack #
##########################
s.dependency 'MyCBDLumberJack'#, '~>1.0'
s.dependency 'MyCBDMacros'#, '~>0.0'
s.prefix_header_contents = '#import "MyCBDMacros.h"', '#import "MyCBDLumberJack.h"',
' #ifdef DEBUG
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
#else
static const int ddLogLevel = LOG_LEVEL_WARN;
#endif'
##########################
##########################
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end And here is the podfile of the project (the line that creates the bug is line 137) source 'https://github.com/CocoaPods/Specs.git'
source 'file://localhost/Users/colas/MyDeveloper/MyPods/'
platform :osx, '10.7'
xcodeproj 'MyMaths.xcodeproj'
#**************************************************************
# PODS UNDER DEVELOPMENT
#**************************************************************
#*******************************
# Foundation Tool Kit
#*******************************
pod 'CBDFoundationToolKit', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDFoundationToolKit'
#pod 'CBDFoundationToolKit', '~>2.0'
#*******************************
# AppKit Tool Kit
#*******************************
pod 'CBDAppKitToolKit', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDAppKitToolKit'
#pod 'CBDAppKitToolKit', '~>1.1'
#*******************************
# Core Data Tool Kit
#*******************************
pod 'CBDCoreDataToolKit', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDCoreDataToolKit'
#pod 'CBDCoreDataToolKit', '~>3.1'
pod 'CBDOrderedAccessorFix'
#*******************************
# Views Tool Kit
#*******************************
pod 'CBDViewsToolKit', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDViewsToolKit'
#pod 'CBDViewsToolKit', '~>1.1'
#*******************************
# My Colors
#*******************************
pod 'MyCBDColors', :path => '/Users/colas/MyDeveloper/MyLibraries/MyCBDColors'
#pod 'MyCBDColors', '~>0.1'
#*******************************
# My Macros
#*******************************
pod 'MyCBDMacros', :path => '/Users/colas/MyDeveloper/MyLibraries/MyCBDMacros/'
#pod 'MyCBDMacros', '~>0.0.3'
#*******************************
# My Log library
#*******************************
pod 'MyCBDLumberJack', :path => '/Users/colas/MyDeveloper/MyLibraries/MyCBDLumberJack/'
#pod 'MyCBDLumberJack', '~>1.1'
#*******************************
# My universal model
#*******************************
pod 'MyCBDUniversalModel', :path => '/Users/colas/MyDeveloper/MyLibraries/MyCBDUniversalModel/'
#pod 'MyCBDUniversalModel', '~>1.0'
#*******************************
# Tree Data
#*******************************
pod 'CBDTreeData', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDTreeData'
#pod 'CBDTreeData', '~>1.1'
#*******************************
# CBDCollectionView
#*******************************
pod 'CBDCollectionViewKit', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDCollectionViewKit'
#pod 'CBDCollectionViewKit', '~>1.0'
#*******************************
# PDF ToolKit
#*******************************
pod 'CBDPDFToolKit', :path => '/Users/colas/MyDeveloper/MyLibraries/CBDPDFToolKit'
#pod 'CBDPDFToolKit', '~>1.1'
#*******************************
# My Managed Document
#*******************************
pod 'MyCBD_BSManagedDocument', :path => '/Users/colas/MyDeveloper/MyApps/MyMainApps/My Maths/Librairies/MyCBD_BSManagedDocument'
#pod 'MyCBD_BSManagedDocument', '~>1.3'
#*******************************
# My Latex Framework
#*******************************
pod 'MyCBDLatexFramework', :path => '/Users/colas/MyDeveloper/MyApps/MyMainApps/My Maths/Librairies/MyCBDLatexFramework'
#pod 'MyCBDLatexFramework', '~>2.0'
#*******************************
# My Core Data Model
#*******************************
####
#### If this line is uncommented, the bug happens
#### The bug is: "pod install" runs fine but "pod update" fails
####
#pod 'MyCBDModelForMyMaths', :path => '/Users/colas/MyDeveloper/MyApps/MyMainApps/My Maths/Librairies/MyCBDModelForMyMaths'
#pod 'MyCBDModelForMyMaths', '~>1.2'
#**************************************************************
# PODS IMPORTED
#************************************************************** |
@colasjojo Does |
I have found more info. Now, I don't need to comment out all the pod. The sub spec that creates the problem is: s.subspec 'Other_classes' do |ss|
ss.source_files = 'Classes/Other_classes/*.{h,m}'
ss.subspec 'NSEntityDescription+CBDIdManager' do |sss|
sss.source_files = 'Classes/Other_classes/NSEntityDescription+CBDIdManager/**/*.{h,m}'
end
ss.subspec 'CBDLatexString+QuestionsForExercisesForItemQuestion' do |sss|
#########################################################
# These classes are only for creation of the .tex files #
#########################################################
sss.platform = :osx
sss.source_files = 'Classes/Other_classes/CBDLatexString+QuestionsForExercisesForItemQuestion/**/*.{h,m}'
end
end About |
I tried a new version of this subspec, but it is still failing to update s.subspec 'Other_classes' do |ss|
ss.source_files = 'Classes/Other_classes/**/*.{h,m}'
ss.exclude_files = 'Classes/Other_classes/CBDLatexString+QuestionsForExercisesForItemQuestion/**/*.{h,m}'
# ss.subspec 'NSEntityDescription+CBDIdManager' do |sss|
# sss.source_files = 'Classes/Other_classes/NSEntityDescription+CBDIdManager/**/*.{h,m}'
# end
ss.subspec 'CBDLatexString+QuestionsForExercisesForItemQuestion' do |sss|
#########################################################
# These classes are only for creation of the .tex files #
#########################################################
sss.platform = :osx
sss.source_files = 'Classes/Other_classes/CBDLatexString+QuestionsForExercisesForItemQuestion/**/*.{h,m}'
end
end |
I have re-organized my podspec, I don't have problems anymore. I hope the info I gave will help you to see what the problem was. |
I just ran into a problem like this and
The fix was to simply remove 2.0.13 |
Ah, the |
I update |
@qtdc1229 thanks works for me too... |
|
I am using the version
0.36.4
. The pod-installing goes without any problem.Any help appreciated. The solution right now is to pod-install every time...
Here is the error trace.
The text was updated successfully, but these errors were encountered: