I'm trying to add the swift-async-algorithms package to my project using SPM. I add it the package:
I'm tried to import the package to my project:
Any of you knows how can I can fix this error?
I tried almost all the posible solitons in here but none of them work.
I'll really appreciate your help.
Based on your screenshots and your import, it looks like you're looking at two different git repos / SPM's.
The screenshot that you posted is for this repo: (swift-algorithms)
However you're trying to import from this repo: (swift-async-algorithms)
Both are Apple SPM's, but you added the wrong one. So you need to remove the first and use the second, and then you'll need to select which package products you want to use:
Related
So I'm trying to include Tidy-HTML5 into an app I'm making. I've run into some issue lately that I don't really know how to solve.
I created this wrapper package, since Tidy-HTML5 is a pure C library and does not support Swift Package Manager.
When I add this package as a dependency in my main project it works fine. That is I need to do the following:
import SwiftTidyHTML
import tidy
But this only works if I build for macOS, if I build for iOS I get an error that tidy cannot be found.
Any help would be really appreciated.
Thanks in advance.
I have installed newest version of RxSwift by CocoaPods.
While trying to use simple elements of RxSwift, like NotificationsCenter.default.rx it doesn't prompt methods to use. Interestingly sometimes it prompts for other pods and sometimes not for the rest so I have to open XCode for checking code correction.
How can I fix that?
You need to wait for this problem to be fixed, sorry for that.
UPD: fixed in 2018.1 EAP, see here
I experience that a lot as well. One of the ways that I make it work if one of my CocoaPods is not installed correctly is to remove the pods and the .xcworkspace file, and then close xcode, and do a pod install. This should help.
Hope it helps :)
--- Edit ---
If that doesn't help, try to remove the import RxSwift, and do a clean and build again :)
You can actually kind of have autocompletion in Appcode if you declare your type explicitly. The only issue is you will have to look up the Base for Reactive<Base> since Appcode considers all rx extensions to be NSObject by default. For example:
import RxSiwft
import RxCocoa
...
(UIButton().rx as Reactive<UIButton>) //Autocompletion will work
You should import RxSwift ,then command + b
I am trying to build WebRTC to get updated library file. I have successfully
built the framework.There is a demo in the source code.At first I am trying to run demo app(AppRTCMobile) with the built framework.Problem is that some files are missing in the framework.It is targeting to import some files from webrtc/modules/audiodevice/ios/obj and showing error for not to be able to import the files.So I can't run the demo and continue afterwards.I followed the below link to build WebRTC:
https://webrtc.org/native-code/ios/
Can Aynone help?
RTCAudioSession.h is never included in WebRTC.framwork, hope it may include soon.
Possible workaround's:
Remove/comment RTCAudioSession related stuff in ARDVideoCallViewController
OR manually add RTCAudioSession.h file in WebRTC.framwork/Headers/
I am trying to use the ":spring-security-core:2.0-RC2" (using Grails version 2.3.1), but have my own LoginController.groovy. Following Burt's notes (here and here), I copied the LoginController.groovy from the original location at "myapp\target\work\plugins\spring-security-core-2.0-RC2\grails-app\controllers\grails\plugin\springsecurity" to my project location at "myapp\grails-app\controllers\com\company". Now I get a bunch of import error messages like "Groovy:unable to resolve class ..." (I have attached am image below showing all the imports giving errors). How do I take care of these errors?
Sorry if this is a trivial question (still getting used to Grails), and thank you for the help!
It looks like GGTS/STS isn't entirely aware that the plugin is installed, since those classes are from the two jars that the plugin depends on. Try right-clicking the project node in the tree and running Grails Tools > Refresh Dependencies. If that's not enough, run Project | Clean to force a full recompile.
I'm having a small issue with xcode (I'm assuming it's mostly due to being unfamiliar with xcode itself) and was hoping someone could lend me a hand.
I'm working with a group of people and we're using the GPUimage framework.
The problem is this:
For every person referencing GPUimage we get additional entries in the build settings for the xcode project.
For example build products path would be:
/Users/username/project/application_name/GPUImage-master/GPUimage.framework
I would rather it be:
/application_name/GPUImage-master/GPUimage.framework
The reason I want to fix this is because we need to package up our application and library together so that whoever wants to use it only needs to open the xcode project file to see what we've done (to mark it, school project).
Can anyone suggest what I should do or look for here?
Try adding the following to the beginning of the user path:
$(SRCROOT)/application_name/GPUImage-master/GPUimage.framework
That should instruct XCode to use the user path of whoever is using the library
Hope this helps!