-
Notifications
You must be signed in to change notification settings - Fork 22
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
error: imported declaration 'TVICameraSourceOptionsBuilderBlock' could not be mapped to 'CameraSourceOptionsBuilder.Block' #72
Comments
|
Hi @tszymala, Since the problem is not reproducible with Xcode build using CocoaPods or manual installation, I suspect it is a problem with BUCK. I do not have BUCK setup installed but an easy test would be to eliminate TwilioVideo from the equation by reproducing the problem using typedef void (^TVICameraSourceOptionsBuilderBlock)(TVICameraSourceOptionsBuilder * _Nonnull builder)
NS_SWIFT_NAME(CameraSourceOptionsBuilder.Block);
NS_SWIFT_NAME(CameraSourceOptions)
@interface TVICameraSourceOptions : NSObject
+ (nonnull instancetype)optionsWithBlock:(nonnull TVICameraSourceOptionsBuilderBlock)block;
@endBest, |
|
Hi Piyush, Thanks for the suggestion i will try it shortly. Also it turns out that everything works when i downgraded to using XCode 10.3. It seems that this only affects XCode 11.x. -Tom |
|
I cannot reproduce this error using an Objc file as you described. It work on XCode 11.3. Odd that for some reason its just that namespaced block that its not happy with in the TwilioVideo SDK |
|
I've run into this quite a few times - we use Cocoapods to install TwilioVideo. |
|
I'm using: |
|
Looks like this is a problem specifically with TwilioVideo 3.1.0. I just downgraded to v3.0.1 and it works @piyushtank |
|
Thanks @tszymala @AdiAyyakad. I pulled latest quickstart, used TwilioVideo 3.1.0 with cocoa pods version 1.7.5, tried running on Xcode 11.3.1, it worked as expected. I am trying to find a way to reproduce the problem in our lab so that we can fix it. @AdiAyyakad The method signature or the NS_SWIFT_NAME for |
|
|
|
@AdiAyyakad I have not tried with 3.0.1 but will give it a shot. @piyushtank I'm experiencing the problem when using BUCK. The fastest way to reproduce it is to clone the AirBnB Buck Sample project.
|
|
Hi @tszymala and @AdiAyyakad, Thank you for your feedback on this issue and help in reproducing the problem with 3.1.0. Unfortunately we can't commit to officially supporting Buck at this time. If there is another way to reproduce the error with a vanilla CocoaPods, Carthage or manual integration then we would be happy to take another look. Best, |
|
I am using vanilla Cocoapods, not Buck. This issue happens on fresh installs, new projects, etc. It's fairly consistent for me, but every once in a while things start building. I'm assuming it's some Xcode bug that's being expressed via this but I have no idea how |
|
Thanks for mentioning that @AdiAyyakad. If the issue occurs with vanilla CocoaPods we can try to reproduce with the CocoaPods and Xcode versions that you provided. |
|
@ceaglest Receiving the same warning (not an error for me) with CocoaPods 1.8.4, TwilioVideo 3.1.0, Xcode Version 11.3.1:
|
|
Thanks for the report @LyndseyScott. While we investigate, I just want to note that there is a similar issue with Xcode 11 mentioned on the Apple developer forums. |
|
|
|
That's what I had to do 🤷♂ |
|
My apologies, but I'm not aware of any workaround at the moment. |
|
Is this issue still occurring with |
|
I have figured out the issue and will be working on getting Sincere apologies for the time it took to get the issue reproduced and solved. I have added an automated testing scenario which will catch any future issues with |
|
This issue got automatically closed when I merged the PR that referenced this issue. 🙄 I will leave this issue open until |
|
|
Description
The following error gets thrown when integrating TwilioVideo using Carthage or CocoaPods and BUCK.
<unknown>:0: error: imported declaration 'TVICameraSourceOptionsBuilderBlock' could not be mapped to 'CameraSourceOptionsBuilder.Block'This could be a similar issue
Expected Behavior
Not get the error.
Actual Behavior
Error gets generated '
<unknown>:0: error: imported declaration 'TVICameraSourceOptionsBuilderBlock' could not be mapped to 'CameraSourceOptionsBuilder.Block''Reproduces How Often
First build after cleaning the build folder and removing derived data.
Versions
Video iOS SDK
3.1.0 via Carthage or CocoaPods
Xcode 11.3
Swift 5.1.3
The text was updated successfully, but these errors were encountered: