ARVideoKit
ARVideoKit copied to clipboard
Swift 4.1 can't use
I had updated the Xcode to 9.3 beta. It shows me the message "Module compiled with Swift 4.0.3 cannot be imported in Swift 4.1".
Hey @v164237, are you using the binary (.framework) file?
-Ahmed
Same here, not working on XCode 9.3 (not beta)
@AFathi @v164237 same problem, can we just use source code now, since @AFathi has open sourced this project?
Same issue for me. Any workaround for this? @AFathi
@shashank-rps @v164237 @zyangSir @Vicapps,
I'd recommend using the source code rather than using the binary file (.framework
file).
FYI, you just need to rebuild the framework with target swift language and then import it :)
working for me xcode9.3
I'm a newbie coder and need some help here with how to "rebuild the framework with target swift language and then import it'. I've imported repository to Xcode, in Build Settings> Swift Compiler - Language, changed it to 4.1, build and ran that code. Then I went back into the RecordARKit-SpriteKit demo project, deleted the original ARVideoKit.framework file, dragged the 'new" .framework file into Embedded Binaries, copies the files, and am still getting the same error message [Module compiled with Swift 4.0.3 cannot be imported in Swift 4.1]. What am I doing wrong?! I'm using Xcode 9.3.
@anushkmittal can you list some steps on how to rebuild the framework?
@allenwixted open the "ARVideoKit.xcodeproj" file and build it. Then go to products -> ARVideoKit.framework -> right click "show in finder" -> Import that framework into your project
@LeonardRockstar thanks for those detailed instructions. Have followed them on Version 9.4 beta (9Q1004a) but am still in the same situation. Has me stumped. Should I be doing anything else as a pre-requisite? Is it possible that the repo could be updated to support 4.1?
Edit: Changed ARVideoKit Project to deploy to iOS 11 only and now it works. @jslusser this may be of interest to you. Thanks again @LeonardRockstar
Thank you @allenwixted . I was able to get it to work...kind of. I was able to save and import it into the AppCoda demo file, but I still can't get the AppCoda project to work. I'm now getting error messages saying that 'RecordAR' is unavailable: cannot find Swift declaration for this class and 'RecordAR' has been explicitly marked unavailable here (ARVideoKit.RecordAR). Any ideas?
I too am having this issue mentioned by @jslusser. Please advise.
I had a similar issue to @jslusser, just make sure you're running on a real device!
Thanks for the quick response @anushkmittal - it works when I run on the device. But I'm currently trying to Archive to submit to the App Store, and during the compile it fails. Any idea why?
do select generic iOS device!
@anushkmittal - yes, Generic iOS Device is indeed selected! Anything else I can try?
To follow up, much like @allenwixted, I had to set the Deployment Target to iOS 11