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
Xcode 9.0 issues #100
Comments
NextLevelSession.swift:258:58: Type 'AVMediaType' (aka 'NSString') has no member 'video' extension NextLevelSession {
/// Prepares a session for recording video.
///
/// - Parameters:
/// - settings: AVFoundation video settings dictionary
/// - configuration: Video configuration for video output
/// - formatDescription: sample buffer format description
/// - Returns: True when setup completes successfully
public func setupVideo(withSettings settings: [String : Any]?, configuration: NextLevelVideoConfiguration, formatDescription: CMFormatDescription) -> Bool {
self._videoInput = AVAssetWriterInput(mediaType: AVMediaType.video, outputSettings: settings, sourceFormatHint: formatDescription)
... |
I'm seeing this issue as well... It seems to be related to what Swift version I was using when compiling NextLevel. When I switch to Swift 4.0 (previously Swift 3.2) it seems to compile correctly.
|
@colinmcardell this didn't work for me... trying to figure out a solution now |
Interesting. I'm using Cocoapods to bring NextLevel into my project and I'm pointing to a specific commit like this: Some context around the errors that are listed above by @Slash7:
A few questions:
|
Finally everything works
|
@colinmcardell thanks, switching to swift 4 in the build settings fixed this issue. I've re-downloaded Xcode 8 as there is another issue, on Apple's side this time (https://forums.developer.apple.com/thread/86810) which involves using private APIs and I won't be able to submit to the AppStore using Xcode 9. |
sorry folks, would have chimed in sooner but didn't see this discussion until now. |
@piemonte thanks, the fix is great but as you're forced to use private APIs like ( I've moved back to swift 3 and Xcode 8 until Apple releases a fix for Xcode 9. |
ah, cool, sounds good. on the forum post (https://forums.developer.apple.com/thread/86810), Apple updated it and mentioned the SPI as OK but i understand trying to avoid the risk. |
Xcode 9.0
I encounter type issues (about 75 of them):
In :
The text was updated successfully, but these errors were encountered: