AbdoPrDZ / laravel_echo_null

This Package is the improved version of the original package "laravel_echo", with some modifications and features.
MIT License
2 stars 2 forks source link

Error iOS #7

Open malikdoksoz opened 2 weeks ago

malikdoksoz commented 2 weeks ago

Error (Xcode): Building for 'iOS-simulator', but linking in object file (/Users/mlkdksz/files/file/mobile/laravelechotest/ios/Pods/Sodium/Sodium/libsodium/libsodium-ios.a[arm64]3) built for 'iOS'

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code

Could not build the application for the simulator. Error launching application on iPhone 15.


dependencies: flutter: sdk: flutter

cupertino_icons: ^1.0.6 socket_io_client: ^2.0.3+1 laravel_echo_null: ^0.0.5+10 pusher_client_fixed: ^0.0.2+2


Flutter 3.19 Macbook Pro M1 Pro

malikdoksoz commented 2 weeks ago

I added this code in PodFile

  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end

I getting:

Swift Compiler Error (Xcode): Unsupported Swift architecture /Users/mlkdksz/files/file/mobile/laravelechotest/build/ios/Debug-iphonesimulator/PusherSwiftWithEncryption/PusherSwiftWithEncryption.framework/Headers/PusherSwiftWithEncryption-Swift.h:746:1 PusherSwiftWithEncryption-Swift.h:746

Swift Compiler Error (Xcode): Could not build Objective-C module 'PusherSwiftWithEncryption'

Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code

Could not build the application for the simulator. Error launching application on iPhone 15.

AbdoPrDZ commented 2 weeks ago

In fact, I repaired the package just for Android. For IOS, I need a Mac, so I cannot help you, but if you want, we can work together to fix it.