Closed jonathanp-avio closed 3 years ago
Can you share your podfile at all?
@jonathanp-avio in addition to providing a minimal test case or the pod file causing the error, is this the whole output? Don't you get a stack trace or a line number where the error happened?
Thanks for your reply.
@coderpatros Here's the podfile, redacted sensitive information. @jgongo This is the entire output (only replaced sensitive information with "__redacted__").
# Settings
platform :ios, '13.7'
use_frameworks!
# Specs repositories
source '__redacted__/ios-podspecs.git'
source 'https://cdn.cocoapods.org/'
project '__redacted__.xcodeproj'
def common_components
pod '__V__Engine', :git => '__redacted__/component-__V__.git', :tag => '2.0.1'
pod '__W__Engine', :git => '__redacted__/component-__W__.git', :tag => '3.0.9'
pod '__redacted__dataCore', :path => './Components/__redacted__dataCore'
pod '__redacted__UI', :path => './Components/__redacted__UI'
pod '__redacted__CoreServiceLayer', :path => './__redacted__Pods/__redacted__CoreServiceLayer'
end
def shared_dependencies
pod 'DeviceKit', '=1.13'
pod 'Realm', '=3.21.0'
pod 'RxSwift', '=5.1.0'
pod 'RxCocoa'
pod 'Swinject', '=2.6.2'
pod 'SwiftyDraw', '~> 2.4.1'
pod 'EasyPeasy', '1.8.0'
pod 'Firebase/Crashlytics', '6.31.1'
pod 'Firebase/Analytics', '6.31.1'
pod 'RealmSwift', '~> 3.21.0'
pod 'RxGesture', '~> 3.0.1'
pod 'SwinjectAutoregistration', '2.6.1'
pod 'SWXMLHash', '5.0.1'
pod 'SwiftSocket', :git => '__redacted__/ios-pod-__redacted__-swift-socket.git'
pod 'PSPDFKit', podspec: '__redacted__/9.5.1.podspec'
end
def test_dependencies
pod "__U__Component", :path => "./Components/__U__Component"
pod "__U__Component/CabinView", :path => "./Components/__U__Component"
pod "__U__Component/EFBView", :path => "./Components/__U__Component"
pod '__redacted__dataCore', :path => './Components/__redacted__dataCore'
pod '__redacted__CoreServiceLayer', :path => './__redacted__Pods/__redacted__CoreServiceLayer'
pod '__redacted__Network', :path => './Components/__redacted__Network'
pod '__redacted__Utility/Tests', :path => './Components/__redacted__Utility'
pod 'Quick', '3.0.0'
pod 'Nimble', '~> 9.0'
pod 'OHHTTPStubs/Swift', '~> 7.0.0'
pod 'SwiftFormat/CLI', '~> 0.45.1'
pod 'RxTest'
pod 'RxBlocking'
pod 'Stencil'
pod 'SwiftyMocky', '~> 4.0'
pod 'SnapshotTesting', '~> 1.8'
end
def components
pod '__redacted__DocumentViewer', :path => './Components/__redacted__DocumentViewer'
pod '__redacted__Keyboard', :path => './Components/__redacted__Keyboard'
pod '__redacted__Network', :path => './Components/__redacted__Network'
pod '__redacted__UIEFB', :path => './Components/__redacted__UIEFB'
pod '__redacted__Utility', :path => './Components/__redacted__Utility'
pod '__redacted__UserPermission', :path => './__redacted__Pods/__redacted__UserPermission'
pod '__redacted__Logger'
common_components
# Core
pod 'ClientCore', :path => './Components/ClientCore'
pod 'ComponentCore', :path => './Components/ComponentCore'
# Components
pod '__A__Component', :path => './Components/__A__Component'
pod '__B__Component', :path => './Components/__B__Component'
pod '__C__Component', :path => './Components/__C__Component'
pod '__D__Component', :path => './Components/__D__Component'
pod '__E__Component', :path => './Components/__E__Component'
pod '__F__Component', :path => './Components/__F__Component'
pod '__G__Component', :path => './Components/__G__Component'
pod '__H__Component', :path => './Components/__H__Component'
pod '__I__Component', :path => './Components/__I__Component'
pod '__J__Component', :path => './Components/__J__Component'
pod '__K__Component', :path => './Components/__K__Component'
pod '__L__Component', :path => './Components/__L__Component'
pod '__M__/SeatMap', :path => 'Components/__M__'
pod '__N__Component', :path => './Components/__N__Component'
pod '__O__Component', :path => './Components/__O__Component'
pod '__P__Component', :path => './Components/__P__Component'
pod '__Q__Component', :path => './Components/__Q__Component'
pod '__R__Component', :path => './Components/__R__Component'
pod '__S__Component', :path => './Components/__S__Component'
pod '__T__Component', :path => './Components/__T__Component'
end
target '__redacted__Cabin' do
# Pods for __redacted__Cabin
components
pod '__U__Component/CabinView', :path => './Components/__U__Component'
shared_dependencies
pod 'SBTUITestTunnelServer'
target '__redacted__CabinFunctionalTests' do
inherit! :search_paths
pod 'OHHTTPStubs/Swift', '~> 7.0.0'
pod 'Stencil'
pod 'EarlGrey', :git => '__redacted__/ios-pod-earlgrey.git', :branch => 'precise-swipe'
pod 'QuizTrain', :git => '__redacted__/ios-pod-quiztrain.git'
pod '__I__Component/Accessibility', :path => './Components/__I__Component'
end
end
target '__redacted__CabinUITests' do
pod 'QuizTrain', :git => '__redacted__/ios-pod-quiztrain.git'
pod 'SBTUITestTunnelClient'
pod '__I__Component/Accessibility', :path => './Components/__I__Component'
pod '__S__Component/Accessibility', :path => './Components/__S__Component'
pod '__E__Component/Accessibility', :path => './Components/__E__Component'
pod 'ComponentCore/Accessibility', :path => './Components/ComponentCore'
pod '__U__Component/Accessibility', :path => './Components/__U__Component'
pod '__G__Component/Accessibility', :path => './Components/__G__Component'
pod '__O__Component/Accessibility', :path => './Components/__O__Component'
pod '__redacted__Network/Accessibility', :path => './Components/__redacted__Network'
pod '__Q__Component/Accessibility', :path => './Components/__Q__Component'
pod 'ClientCore', :path => './Components/ClientCore'
end
# Pods for __redacted__
target '__redacted__' do
components
pod '__U__Component/EFBView', :path => './Components/__U__Component'
shared_dependencies
# Vendor
pod '__X__Wrapper', :git => '__redacted__/__X__.git', :tag => '0.23.6'
pod 'PocketSVG'
pod 'SwiftyJSON'
pod '__Y__Library', :git => '__redacted__/component-__Y__.git', :tag => '5.0.3'
pod '__redacted__Z__', :git => '__redacted__/ios-pod-__Z__.git', :tag => '0.1.10'
target '__redacted__FunctionalTests' do
inherit! :search_paths
pod '__U__Component', :path => './Components/__U__Component'
pod 'EarlGrey', :git => '__redacted__/ios-pod-earlgrey.git', :branch => 'precise-swipe'
pod '__I__Component/Accessibility', :path => './Components/__I__Component'
pod 'OHHTTPStubs/Swift', '~> 7.0.0'
pod 'QuizTrain', :git => '__redacted__/ios-pod-quiztrain.git'
pod 'Stencil'
pod '__Q__Component/Accessibility', :path => './Components/__Q__Component'
end
end
# Pods for __redacted__Lite
target '__redacted__Lite' do
# Core
pod '__redacted__Keyboard', :path => './Components/__redacted__Keyboard'
pod 'ClientCore', :path => './Components/ClientCore'
pod 'ComponentCore', :path => './Components/ComponentCore'
# Components
pod '__U__Component', :path => './Components/__U__Component'
pod '__U__Component/EFBView', :path => './Components/__U__Component'
pod '__E__Component', :path => './Components/__E__Component'
pod '__G__Component', :path => './Components/__G__Component'
pod '__I__Component', :path => './Components/__I__Component'
pod '__O__Component', :path => './Components/__O__Component'
pod '__P__Component', :path => './Components/__P__Component'
pod '__S__Component', :path => './Components/__S__Component'
# Vendor
shared_dependencies
end
# Pods for UI Tests
target '__redacted__Host' do
# Core
pod '__redacted__Keyboard', :path => './Components/__redacted__Keyboard'
pod 'ClientCore', :path => './Components/ClientCore'
pod 'ComponentCore', :path => './Components/ComponentCore'
# Components
pod '__I__Component', :path => './Components/__I__Component'
pod '__E__Component', :path => './Components/__E__Component'
pod '__O__Component', :path => './Components/__O__Component'
pod '__S__Component', :path => './Components/__S__Component'
pod '__R__Component', :path => './Components/__R__Component'
pod '__L__Component', :path => './Components/__L__Component'
# EarlGrey
pod 'EarlGreyApp', :path => 'EarlGreyApp'
# Vendor
shared_dependencies
end
target '__redacted__HostUITests' do
# EarlGrey
pod 'EarlGreyTest', :path => 'EarlGreyTest'
# Component accessibility
pod '__I__Component', :path => './Components/__I__Component'
pod '__E__Component', :path => './Components/__E__Component'
pod 'ClientCore', :path => './Components/ClientCore'
pod '__L__Component', :path => './Components/__L__Component'
# Vendor
pod 'Embassy'
pod 'Stencil'
end
target '__redacted__Tech' do
# Pods for __redacted__Tech
components
shared_dependencies
target :__redacted__TechTests do
inherit! :search_paths
test_dependencies
pod '__S__Component/Accessibility', :path => './Components/__S__Component'
pod '__O__Component/Accessibility', :path => './Components/__O__Component'
pod '__G__Component/Accessibility', :path => './Components/__G__Component'
pod '__I__Component/Accessibility', :path => './Components/__I__Component'
pod '__Q__Component/Accessibility', :path => './Components/__Q__Component'
pod 'EarlGrey', :git => '__redacted__/ios-pod-earlgrey.git', :branch => 'precise-swipe'
pod 'QuizTrain', :git => '__redacted__/ios-pod-quiztrain.git'
# Pods for testing
end
end
def component_dependencies
common_components
shared_dependencies
test_dependencies
end
target 'AllTests' do
components
component_dependencies
end
[
"__A__Component",
"__B__Component",
"__redacted__DocumentViewer",
"__redacted__Network",
"__redacted__UI",
"__redacted__Utility",
"__redacted__dataCore",
"__C__Component",
"ClientCore",
"ComponentCore",
"__D__Component",
"__E__Component",
"__F__Component",
"__G__Component",
"__H__Component",
"__I__Component",
"__J__Component",
"__K__Component",
"__L__Component",
"__N__Component",
"__O__Component",
"__P__Component",
"__Q__Component",
"__R__Component",
"__S__Component",
"__T__Component"
].each do |component|
target "#{component}Tests" do
pod "#{component}", :path => "./Components/#{component}"
component_dependencies
end
end
target '__redacted__CoreServiceLayerTests' do
test_dependencies
end
target "__M__ComponentTests" do
pod "__M__Component/SeatMap", :path => "Components/__M__Component"
test_dependencies
end
target "__U__ComponentTests" do
pod "__U__Component", :path => "./Components/__U__Component"
pod "__U__Component/CabinView", :path => "./Components/__U__Component"
pod "__U__Component/EFBView", :path => "./Components/__U__Component"
test_dependencies
end
# Post install
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ARCHS'] = '$(ARCHS_STANDARD_64_BIT)'
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Osize'
if !(['__redacted__Keyboard', 'SBTUITestTunnelCommon'].include? target.name)
config.build_settings['SWIFT_INSTALL_OBJC_HEADER'] = 'NO'
end
if config.name == 'Debug'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
end
end
end
end
# Post integrate
post_integrate do |installer|
scheme = Xcodeproj::XCScheme.new("__redacted__.xcodeproj/xcshareddata/xcschemes/__redacted__.xcscheme")
scheme.launch_action.xml_element.attributes['enableGPUValidationMode'] = "1"
scheme.save!
end
Confirming the issue, I get this error also on a relatevly small Podfile.
@pavshr could u share your smaller Podfile information? I've same issue but trying to reproduce it with smaller Podfile.
Sorry for the late reply. @pavshr if you are kind enough to share your small Podfile I can try to diagnose the issue. Can you, please? @nghuiqin same to you, if you manage to reproduce it with a relatively small Podfile, can you please share it?
@jgongo I found out if I install RxSwift this issue will be reproduced!
as same as @jonathanp-avio project does have RxSwift installed.
platform :tvos, '11.0'
inhibit_all_warnings!
target 'Testing' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Private Pods
pod 'AppCenter/Crashes'
pod 'AppCenter/Analytics'
pod 'FBSDKCoreKit'
pod 'RxSwift'
end
Thanks a lot, @nghuiqin ! I'll take a look and report back as soon as possible.
@jonathanp-avio @pavshr @nghuiqin
This has been solved in master
. The description of the RxSwift pod seemed to contain a null byte character, which is perfectly legal, but seems to be forbidden in an XML string. The description is now always enclosed in a CDATA section, so these problems are avoided, and we also avoid problems would the description contain any markup-like string.
Hello,
Installed the gem from source and ran the command against our Podfile. The command ends with an error claiming that the string (assuming the gathered information ?) is empty. The debug information is not helping me any further. I'd at least expect the command to not fail on this or am I missing something?