You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't access resourceCount with Carthage because, as far as I'm aware of, Carthage only uses release version of the binaries, and you can't specify addition compilation flags.
Once any version of RxSwift libraries is compiled without TRACE_RESOURCES Swift flag, the code that traces resources is simply not compiled inside the library.
If Carthage supported specifying additional Swift flags during compilation, that would be possible, but I'm not sure it currently supports that or is there some other way to solve that using Carthage.
Activity
sergdort commentedon Jan 2, 2016
Please take a look on #301
kbala-ami commentedon Jan 3, 2016
Hi @sergdort I set the OtherSwift Compiler Flags same as you did, still I have same issue, Please see the below SS
sergdort commentedon Jan 4, 2016
Hi @kbala did you make a post POD install hook ?
singno commentedon Jan 4, 2016
I use Carthage build version: github "ReactiveX/RxSwift" ~> 2.0 . And I cann't access RxSwift. resourceCount too.
sergdort commentedon Jan 4, 2016
Here is screen shot from RxExample, looks like it should be -D TRACE_RESOURCES
singno commentedon Jan 4, 2016
It seems not working for me.
sergdort commentedon Jan 4, 2016
And it off course should be in the framework build settings. I'm not sure is it possible to do some configurations with Carthage, like with Cocoapods
kzaher commentedon Jan 4, 2016
You can't access
resourceCount
with Carthage because, as far as I'm aware of, Carthage only uses release version of the binaries, and you can't specify addition compilation flags.Once any version of RxSwift libraries is compiled without
TRACE_RESOURCES
Swift flag, the code that traces resources is simply not compiled inside the library.If Carthage supported specifying additional Swift flags during compilation, that would be possible, but I'm not sure it currently supports that or is there some other way to solve that using Carthage.
singno commentedon Jan 4, 2016
@kzaher Yes, Carthage seems can not change build setting.
@sergdort I can not set the build setting of RxSwift framework.
ikesyo commentedon Jan 5, 2016
You can use
carthage build --configuration Debug
.kbala-ami commentedon Jan 5, 2016
yes, I run
carthage build --configuration Debug
I can access the resourceCount now, and it works 👍
kzaher commentedon Jan 5, 2016
Thnx @ikesyo :)
kzaher commentedon Jan 5, 2016
And thnx @sergdort , helping with issues helps a lot 👍
19 remaining items