Skip to content
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

[Bug] Unable to build with iOS device #53

Closed
nthungdev opened this issue Aug 27, 2019 · 1 comment
Closed

[Bug] Unable to build with iOS device #53

nthungdev opened this issue Aug 27, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@nthungdev
Copy link

Description

My Flutter app built on iOS device with an error.

Platform

IOS

Backtracking step (if has)

  1. Insert dependency flutter_video_compress: ^0.3.7+8 into pubspec.yaml and install packages
flutter packages get
cd ios
pod install
  1. Start debugging with VS Code (F5)
  2. Got error

Error message from debug console

Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done.                                            2.2s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    /Users/hunguyen/Projects/ergon-mobile/ios/Pods/Regift/Regift/Regift.swift:251:45: error: missing argument label 'preferredTimescale:' in call
                let time = CMTimeMakeWithSeconds(seconds, Constants.TimeInterval)
                                                ^
                                                          preferredTimescale:
    /Users/hunguyen/Projects/ergon-mobile/ios/Pods/Regift/Regift/Regift.swift:303:46: error: missing argument label 'preferredTimescale:' in call
            let tolerance = CMTimeMakeWithSeconds(Constants.Tolerance, Constants.TimeInterval)
                                                 ^
                                                                       preferredTimescale:
    /Users/hunguyen/Projects/ergon-mobile/ios/Pods/Regift/Regift/AVAssetImageGeneratorTimePoints.swift:12:5: warning: 'public' modifier is redundant for instance method declared in a public extension
        public func generateCGImagesAsynchronouslyForTimePoints(timePoints: [TimePoint], completionHandler: @escaping AVAssetImageGeneratorCompletionHandler) {
        ^~~~~~~
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Exited (sigterm)

Expected solution

My Flutter app should have built successfully

@nthungdev nthungdev added the bug Something isn't working label Aug 27, 2019
@nthungdev nthungdev changed the title [Bug] [Bug] Unable to build with iOS device Aug 27, 2019
@nthungdev
Copy link
Author

Problem solved by following this comment link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant