https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Fail

07/25/2019, 10:03 AM
Friends help me please. When I build application to iOS emulator then all correct and work. But if build for device then build failed with error that all my classes unresolved.
Copy code
...
Unresolved reference: HttpClient
Unresolved reference: Job
Unresolved reference: HttpRequestBuilder
Unresolved reference: io
...
> Task :app:linkDebugFrameworkIos_32 FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:linkDebugFrameworkIos_32'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
What wrong? Solved 🎉
My gradle for example
d

Dico

07/25/2019, 10:13 AM
Are you certain that
iosMain
sourceset is configured for all iOS targets?
f

Fail

07/25/2019, 10:14 AM
No. How to set?
a

Artyom Degtyarev [JB]

07/25/2019, 11:18 AM
Try something like this, I just added iosCommonMain sourceset instead of iosMain, and wrote a little
compilations
parameter to make every ios target to depend on this sourceset:
f

Fail

07/25/2019, 11:27 AM
Yes! Thankyou! All work!
Do I owe you a beer? If in St. Petersburg, I will treat with pleasure