dazza5000
09/01/2020, 2:56 PMdazza5000
09/03/2020, 3:33 PMdambakk
09/08/2020, 8:23 AMEXC_BAD_ACCESS
exception in a swizzle
method (not familiar with it, I’m an android dev 😛 ) and a stacktrace pointing to doubleCheckOriginalClass Class SharedCodeio.ktor.client.engine.ios.IosResponseReader0 0x00
. Any idea what this means and how to resolve?
I use all the latest versions (kotlin 1.4.0, ktor 1.4.0, coroutines 1.3.9-native-mt)nrobi
09/09/2020, 7:42 AMPhaseScriptExecution Run\ Script ...
is failing on the Gitlab CI, while it’s working locally. Anyone with some experience regarding this type of issue?dazza5000
09/09/2020, 5:39 PMJolas
09/10/2020, 2:11 PMdazza5000
09/14/2020, 2:28 PMKaushalya Pradeep
09/15/2020, 2:45 AMDaniele B
09/15/2020, 9:00 AMinit() is unavailable
dazza5000
09/17/2020, 7:50 PMdazza5000
09/18/2020, 2:37 PMaleksey.tomin
10/01/2020, 2:59 PMCFArrayRef interfaces = CNCopySupportedInterfaces();
CFDictionaryRef networkInfo = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(interfaces, 0));
NSString *ssid = CFDictionaryGetValue(networkInfo, @"SSID");
I’ve wrote:
val interfaces = CNCopySupportedInterfaces()
val interface: CFStringRef? = CFArrayGetValueAtIndex(interfaces, i)?.reinterpret()
val networkInfo = CNCopyCurrentNetworkInfo(interface)
val ssIdPtr = CFDictionaryGetValue(networkInfo, kCNNetworkInfoKeySSID)
val ssId = ?????
aleksey.tomin
10/03/2020, 6:04 AMBGTaskScheduler.sharedScheduler.registerForTaskWithIdentifier("My.ID", null, ::handleBackgroundRefresh)
Ant I have error Null can not be a value of a non-null type dispatch_queue_t? /* = NSObject? */
NSObject?
is a non-null type?
PS: How can I starts something “every 30 seconds” on iOS?darkmoon_uk
10/05/2020, 6:58 AMMikołaj Kąkol
10/07/2020, 2:15 PMexpect fun fetch(result : (String) -> Unit)
However this can lead to freezing issue, since callback can be called on different thread. Any suggestions?darkmoon_uk
10/10/2020, 1:37 PMdarkmoon_uk
10/17/2020, 10:03 AMCombine
framework?
It should be supported from iOS 13... Anyone know if there's a reason for this, other than 'JetBrains haven't bound it yet?'. This raises the question of how manual a binding process the iOS frameworks have to go through - I assumed it would be automated.Derek Ellis
10/18/2020, 6:58 PMcocoapods {
summary = "mapbox framework"
homepage = "<https://github.com/cuhacking/atlas>"
frameworkName = "MapStuff"
ios.deploymentTarget = Versions.ios
pod("Mapbox-iOS-SDK", "~> 5.9", moduleName = "Mapbox")
}
this module isn't imported as a framework^, it's just more convenient to manage pod dependencies with the plugin
and then we have another module called "common" configured like so:
cocoapods {
summary = "mapbox framework"
homepage = "<https://github.com/cuhacking/atlas>"
podfile = project.file("../ios/Podfile")
frameworkName = "Common"
ios.deploymentTarget = Versions.ios
}
The Common framework depends on the first module^ and is then included as a dependency for our iOS app.
pod 'common', :path => '../common'
Everything builds normally until trying to build in Xcode where it fails with a "module 'Mapbox' not found" on the cinterop step. Tried just about everything at this point, and I saw a similar-looking issue about subspecs but AFAIK this isn't related since the Mapbox-iOS-SDK pod can be included and I have been able to before.darkmoon_uk
10/19/2020, 12:54 AMshared
module to compile with Cocoapods dependencies just fine.
But when finally building/linking the App in Xcode, the linker(?) complains that it can't see the transient dependency symbols.
It it expected that I have to set up the dependencies twice, once for the shared
module, and then again for the overall Xcode project? I can't find any specific reference to this workflow in the docs.darkmoon_uk
10/24/2020, 2:03 PM1.9.3
-> 1.10.0
✅
• All good, but cocoapods-generate
also has a bug with identifying Cocoapods version number which prevents it from working with Cococapods 1.10.0
😱
• This bug was fixed but has not been released yet (the last cococapods-generate
release was back in April) ⏳
If you're at all interested in using Cocoapods with Kotlin/iOS I would recommend commenting on this PR and this issue.dazza5000
10/27/2020, 10:02 PMMaurice Wingbermuhle
11/02/2020, 10:10 AMMikołaj Kąkol
11/09/2020, 11:11 AMRainer Schlonvoigt
11/09/2020, 2:09 PMSantiago Avila
11/15/2020, 9:49 PMbuild.gradle.kts
file looks:
kotlin {
android()
ios()
cocoapods {
summary = "Some description for a Kotlin/Native module"
homepage = "Link to a Kotlin/Native module homepage"
frameworkName = "SnailCore"
ios.deploymentTarget = "13.0"
pod("AFNetworking")
}
}
When I try to run the iOS app from Xcode I get this error:
> Task :SnailCore:cinteropAFNetworkingIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/kq/ztt_vhm14dq4hkd2py7xb_5m0000gn/T/tmp8310314041899312327.m:1:9: fatal error: module 'AFNetworking' not found
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:67)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:13)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:499)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:264)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:72)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:19)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:37)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':SnailCore:cinteropAFNetworkingIosX64'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 3s
2 actionable tasks: 1 executed, 1 up-to-date
Command PhaseScriptExecution failed with a nonzero exit code
I tried deleting pods cache, cleaning build folders and always got the same error
Also what does it mean to re-import the project?Rainer Schlonvoigt
11/16/2020, 10:38 AMribesg
11/17/2020, 2:35 PMpublic final val callStackReturnAddresses: kotlin.collections.List<*> /* compiled code */
@kotlinx.cinterop.ObjCMethod public open external fun callStackReturnAddresses(): kotlin.collections.List<*> { /* compiled code */ }
- Why is the val
final
? It isn’t in ObjC/Swift
- Why is there an open function with the same name? Does overriding it overrides the val
too? How does that work?Grzegorz Sagadyn
11/18/2020, 9:57 AMis not safe for use in application extensions
. Is there any way to resolve the mentioned warning?darkmoon_uk
11/18/2020, 9:05 PMaleksey.tomin
12/18/2020, 5:35 AMxcodebuild -scheme QA -archivePath <path1> archive
xcodebuild -exportArchive -archivePath <path1> -exportPath <path2> -exportOptionsPlist <plist>
All Ok.
xcrun altool --upload-app -f <path2> -u
...
*** Error: code -21017 (Unable to validate your application. Could not determine the package's bundle id. The package is missing an Info.plist or the CFBundlePackageType is not 'APPL' or 'FMWK'.)
In Info.plist
from IPA path I see
<key>CFBundlePackageType</key>
<string>APPL</string>
What do I wrong?