GetStream / stream-chat-swift

💬 iOS Chat SDK in Swift - Build your own app chat experience for iOS using the official Stream Chat API
https://getstream.io/chat/sdk/ios/
Other
859 stars 211 forks source link

Cocoa pods updation from 4.5.0 to 4.21.1 causes error #2291

Closed vineethnkforios closed 2 years ago

vineethnkforios commented 2 years ago

What did you do?

arch -x86_64 pod install

What did you expect to happen?

It will update the framework

What happened instead?

Shows the folowing error

Analyzing dependencies [!] CocoaPods could not find compatible versions for pod "StreamChatUI": In Podfile: StreamChatUI (~> 4.21.1)

None of your spec sources contain a spec satisfying the dependency: StreamChatUI (~> 4.21.1).

You have either:

[!] Automatically assigning platform iOS with version 11.0 on target DIGITALAgency because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform

GetStream Environment

GetStream Chat version:4.21.1 GetStream Chat frameworks: StreamChat, StreamChatUI iOS version:iOS 15 Swift version:5.0 Xcode version:13.3 *Device:iphone X*

Additional context

vineethnkforios commented 2 years ago

Please find my pod file target 'DIGITALAgency' do

Comment the next line if you don't want to use dynamic frameworks

use_frameworks!

Pods for DIGITALAgency

pod 'StreamChatUI', '~> 3.0-beta.4'

pod 'StreamChatUI', '~> 4.0.0-beta.11'

pod 'StreamChatUI', :git => 'https://github.com/GetStream/stream-chat-swift/', :tag => '4.0.0-RC'

pod 'StreamChatUI', '~> 4.21.1'

pod 'Alamofire', '~> 5.4'

Add the pod for Firebase Cloud Messaging

pod 'Firebase/Messaging'

pod 'JitsiMeetSDK'

pod "iShowcase", "~> 2.0"
 post_install do |installer|
installer.pods_project.targets.each do |target|
  target.build_configurations.each do |config|
    config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
    config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
    config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
    config.build_settings['ENABLE_BITCODE'] = 'NO'
    config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
  end
end

end end

polqf commented 2 years ago

Hi @vineethnkforios , please try to correct the formatting of your messages above as it is really complicated to understand them.

As per the error, it seems that you need to run pod repo update, and then you can run pod update.

In any case, this issue is unrelated to Stream, so will proceed to close this issue.

vineethnkforios commented 2 years ago

It is working fine for till the version pod 'StreamChatUI', '~> 4.12.0'

However when update the pod file to pod 'StreamChatUI', '~> 4.13.0' and run pod install then returns the following error

Analyzing dependencies [!] CocoaPods could not find compatible versions for pod "StreamChatUI": In Podfile: StreamChatUI (~> 4.13.0)

None of your spec sources contain a spec satisfying the dependency: StreamChatUI (~> 4.13.0).

You have either:

[!] Automatically assigning platform iOS with version 12.0 on target DIGITALAgency because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

vineethnkforios commented 2 years ago

I had a similar issue before this is the link: https://github.com/GetStream/stream-chat-swift/issues/1432

polqf commented 2 years ago

Did you run 'pod repo update' before running 'pod install'?

Please share the logs

vineethnkforios commented 2 years ago

Yes but causes some bug- I am using Mac Mani- M1 chip

the logs as below:

pod repo update Updating spec repo cocoapods $ /usr/bin/git -C /Users/vineethnk/.cocoapods/repos/cocoapods fetch origin --progress remote: Enumerating objects: 243, done.
remote: Counting objects: 100% (243/243), done.
remote: Compressing objects: 100% (153/153), done.
remote: Total 243 (delta 84), reused 224 (delta 81), pack-reused 0
Receiving objects: 100% (243/243), 88.75 KiB | 2.86 MiB/s, done. Resolving deltas: 100% (84/84), completed with 8 local objects. From https://github.com/CocoaPods/Specs 57216e92d6cf..b66626e8a8ab master -> origin/master $ /usr/bin/git -C /Users/vineethnk/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD master $ /usr/bin/git -C /Users/vineethnk/.cocoapods/repos/cocoapods reset --hard origin/master HEAD is now at b66626e8a8ab [Add] QonversionSandwich 0.1.2 Updating spec repo trunk /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000102ca8000 ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]

-- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following:

-- Control frame information ----------------------------------------------- c:0034 p:---- s:0214 e:000213 CFUNC :attach c:0033 p:0258 s:0208 e:000207 METHOD /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275 c:0032 p:0050 s:0188 e:000187 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:17 c:0031 p:0007 s:0185 e:000184 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:7 c:0030 p:0007 s:0182 e:000181 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:2 [FINISH] c:0029 p:---- s:0179 e:000178 CFUNC :require c:0028 p:0110 s:0174 e:000173 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54 c:0027 p:0042 s:0162 e:000161 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:15 [FINISH] c:0026 p:---- s:0159 e:000158 CFUNC :require c:0025 p:0110 s:0154 e:000153 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54 c:0024 p:0013 s:0142 e:000141 TOP /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH] c:0023 p:---- s:0139 e:000138 CFUNC :require c:0022 p:0110 s:0134 e:000133 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54 c:0021 p:0006 s:0122 e:000121 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:440 c:0020 p:0045 s:0114 e:000113 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:372 c:0019 p:0318 s:0103 e:000102 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:365 c:0018 p:0006 s:0093 e:000092 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:338 c:0017 p:0006 s:0088 e:000087 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:78 c:0016 p:0008 s:0084 e:000082 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:60 c:0015 p:0009 s:0078 e:000077 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:257 c:0014 p:0009 s:0073 e:000072 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:144 c:0013 p:0081 s:0069 e:000068 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64 c:0012 p:0033 s:0062 e:000061 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:143 [FINISH] c:0011 p:---- s:0058 e:000057 CFUNC :each c:0010 p:0022 s:0054 e:000053 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:142 [FINISH] c:0009 p:---- s:0050 e:000049 CFUNC :open c:0008 p:0082 s:0044 e:000043 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:140 c:0007 p:0027 s:0036 e:000035 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/repo/update.rb:23 c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334 c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52 c:0004 p:0378 s:0019 e:000018 TOP /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55 [FINISH] c:0003 p:---- s:0013 e:000012 CFUNC :load c:0002 p:0109 s:0008 E:0001e0 EVAL /usr/local/bin/pod:23 [FINISH] c:0001 p:0000 s:0003 E:001300 (none) [FINISH]

-- Ruby level backtrace information ---------------------------------------- /usr/local/bin/pod:23:in <main>' /usr/local/bin/pod:23:inload' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:inrun' /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/repo/update.rb:23:inrun' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:140:in update' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:140:inopen' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:142:in block in update' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:142:ineach' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:143:in block (2 levels) in update' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:insection' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/sources_manager.rb:144:in block (3 levels) in update' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:257:inupdate' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:60:in preheat_existing_files' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:78:indeprecated_local_podspecs' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:338:in download_file' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:365:indownload_file_async' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:372:in download_and_save_with_retries_async' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/cdn_source.rb:440:indownload_typhoeus_impl_async' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:15:in<top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:2:in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:7:in' /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:17:in <module:Libc>' /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275:inattach_function' /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275:in `attach'

-- Other runtime information -----------------------------------------------

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: https://www.ruby-lang.org/bugreport.html

[IMPORTANT] Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports.

zsh: abort pod repo update

polqf commented 2 years ago

This is an issue related to CocoaPods. Please open an issue in their repo so they can help you.