lisen87 / image_pickers

图片多选并压缩,保存图片到相册,视频多选,预览图片和视频
Apache License 2.0
90 stars 59 forks source link

Version 1.0.8+5 Build Still Crashing On iOS #57

Closed RalphMarvin closed 1 year ago

RalphMarvin commented 4 years ago

If i run flutter build ios i get the following error:

Running Xcode build...                                                  

Xcode build done.                                           133.5s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1462:38: warning: variable
    'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                         ^~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1426:3: note: variable 'sum_left'
    is declared here
      uint16x8_t sum_left;
      ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1462:48: warning: variable
    'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                                   ^~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1425:3: note: variable 'sum_top'
    is declared here
      uint16x8_t sum_top;
      ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1546:38: warning: variable
    'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                         ^~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1510:3: note: variable 'sum_left'
    is declared here
      uint16x8_t sum_left;
      ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1546:48: warning: variable
    'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                                   ^~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1509:3: note: variable 'sum_top'
    is declared here
      uint16x8_t sum_top;
      ^
    4 warnings generated.
    1 warning generated.
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1462:38: warning: variable
    'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                         ^~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1426:3: note: variable 'sum_left'
    is declared here
      uint16x8_t sum_left;
      ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1462:48: warning: variable
    'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                                   ^~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1425:3: note: variable 'sum_top'
    is declared here
      uint16x8_t sum_top;
      ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1546:38: warning: variable
    'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                         ^~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1510:3: note: variable 'sum_left'
    is declared here
      uint16x8_t sum_left;
      ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1546:48: warning: variable
    'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
        const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
                                                   ^~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/libwebp/src/dsp/dec_neon.c:1509:3: note: variable 'sum_top'
    is declared here
      uint16x8_t sum_top;
      ^
    4 warnings generated.
    1 warning generated.
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:18: error: consecutive statements on a line must be separated by ';'
                    } completion: { (_) in
                     ^
                     ;
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:29: error: consecutive statements on a line must be separated by ';'
                    } completion: { (_) in
                                ^
                                ;
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:29: error: expected expression
                    } completion: { (_) in
                                ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    283:62: error: missing argument for parameter #1 in call
                    self.filterCollectionView.performBatchUpdates {
                                                                 ^
                                                                 (<#(() -> Void)?#>)
    UIKit.UICollectionView:122:15: note: 'performBatchUpdates(_:completion:)' declared here
        open func performBatchUpdates(_ updates: (() -> Void)?, completion: ((Bool) -> Void)? = nil)
                  ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:19: error: use of unresolved identifier 'completion'
                    } completion: { (_) in
                      ^~~~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:31: error: unable to infer complex closure return type; add explicit type to disambiguate
                    } completion: { (_) in
                                  ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:31: error: closure expression is unused
                    } completion: { (_) in
                                  ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/General/ZLPhotoPreviewSheet.swift:300
    :87: error: argument passed to call that takes no arguments
            if #available(iOS 14.0, *), preview, PHPhotoLibrary.authorizationStatus(for: .readWrite) == .limited {
                                                                                   ~~~~~~~^~~~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/General/ZLThumbnailViewController.swi
    ft:145:78: error: argument passed to call that takes no arguments
            if #available(iOS 14.0, *), PHPhotoLibrary.authorizationStatus(for: .readWrite) == .limited {
                                                                          ~~~~~~~^~~~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:18: error: consecutive statements on a line must be separated by ';'
                    } completion: { (_) in
                     ^
                     ;
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:29: error: consecutive statements on a line must be separated by ';'
                    } completion: { (_) in
                                ^
                                ;
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:29: error: expected expression
                    } completion: { (_) in
                                ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    283:62: error: missing argument for parameter #1 in call
                    self.filterCollectionView.performBatchUpdates {
                                                                 ^
                                                                 (<#(() -> Void)?#>)
    UIKit.UICollectionView:122:15: note: 'performBatchUpdates(_:completion:)' declared here
        open func performBatchUpdates(_ updates: (() -> Void)?, completion: ((Bool) -> Void)? = nil)
                  ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:19: error: use of unresolved identifier 'completion'
                    } completion: { (_) in
                      ^~~~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:31: error: unable to infer complex closure return type; add explicit type to disambiguate
                    } completion: { (_) in
                                  ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/Edit/ZLEditImageViewController.swift:
    285:31: error: closure expression is unused
                    } completion: { (_) in
                                  ^
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/General/ZLPhotoPreviewSheet.swift:300
    :87: error: argument passed to call that takes no arguments
            if #available(iOS 14.0, *), preview, PHPhotoLibrary.authorizationStatus(for: .readWrite) == .limited {
                                                                                   ~~~~~~~^~~~~~~~~~
    /Users/ralph/Desktop/Work/trumateapp/android_n_ios/ios/Pods/ZLPhotoBrowser/Sources/General/ZLThumbnailViewController.swi
    ft:145:78: error: argument passed to call that takes no arguments
            if #available(iOS 14.0, *), PHPhotoLibrary.authorizationStatus(for: .readWrite) == .limited {
                                                                          ~~~~~~~^~~~~~~~~~
    note: Using new build system
    note: Planning build
    note: Constructing build description
lisen87 commented 4 years ago

新版本尝试修复这个问题了。

RalphMarvin commented 4 years ago

新版本尝试修复这个问题了。

RalphMarvin commented 4 years ago

它仍然不起作用,出现很多错误

cuixiaocun commented 4 years ago

1.请清除一下缓存 flutter clean 2.~/资源库/Developer/Xcode/DerivedData删除文件夹下所有缓存 3.删除IOS文件下的 podfile、podfile.lock、pods、Runner.xcworkspace文件 具体就是清除缓存再重新pub get .................运行

RalphMarvin commented 4 years ago

1.请清除一下缓存 flutter clean 2.~/资源库/Developer/Xcode/DerivedData删除文件夹下所有缓存 3.删除IOS文件下的 podfile、podfile.lock、pods、Runner.xcworkspace文件 具体就是清除缓存再重新pub get .................运行

完成此工作后,谢谢。 我认为您应该将此内容添加到自述文件中,否则将对您有所帮助。

lisen87 commented 4 years ago

en: Is IOS working properly now?zh:现在插件在ios上能正常运行了吗?