GarouDan
04/10/2019, 12:00 AMBundle at path /Users/myUser/Library/Developer/CoreSimulator/Devices/DEVICE_NUMBER/data/Library/Caches/com.apple.mobile.installd.staging/temp.UblNHF/extracted/iosApp.app/Frameworks/main.framework did not have a CFBundleIdentifier in its Info.plist
I did a research about this and they say this is related with a cocoapods
gem, but I’m not really using something like this, the project, for now, is really simple, just some kind of a hello world.
After a lot of attempts I was able to use iPhone 8
but not iPhone Xr
(but even with iPhone 8
it doesn’t work always).
Does someone know why this happens?
PS.: I’m using outputKinds("framework")
in my build.gradle.kts
ilya.matveev
04/10/2019, 5:52 AMAm I missing some configuration on myIt doesn't look so. Could you please provide a link to your project? A compilation log would be helpful too. To get it, just run the Gradle build with?build.gradle.kts
-i
flag.Vyacheslav Karpukhin [JB]
04/10/2019, 9:20 AMGarouDan
04/10/2019, 11:41 PM10.2 (10E125)
).
For example, this project of mine was working ok but now it is giving the same error:
https://github.com/Danilo-Araujo-Silva/kotlin-multiplatform-android-ios-example
and as you can see in this issue
https://youtrack.jetbrains.com/issue/KT-29804
I’ve shared this repository to show a working solution for the problem that I’ve found.
In the beginning I was thinking the problem was related with the new project that I’m working on, but now it seems to be happening in general.Info.plist
inside of my main.framework
.
My build is passing ok and all steps of the build process is working, it is only failing when I’m trying to reach the simulator-i
is this one:Vyacheslav Karpukhin [JB]
04/11/2019, 10:00 AMGarouDan
04/11/2019, 5:57 PMVyacheslav Karpukhin [JB]
04/11/2019, 9:30 PMGarouDan
04/11/2019, 9:48 PMVyacheslav Karpukhin [JB]
04/11/2019, 10:02 PMGarouDan
04/11/2019, 10:28 PMNo such module 'KotlinNativeFramework'
Do you have any idea what could cause this?
This error occurs when trying to compile the Swift filessvyatoslav.scherbina
04/15/2019, 8:22 AMVyacheslav Karpukhin [JB]
04/15/2019, 8:55 AMsunbreak
04/15/2019, 9:22 AMIntelliJ IDEA 2019.1 (Ultimate Edition)
Build #IU-191.6183.87, built on March 27, 2019
Licensed to Sunbreak Wang
Subscription is active until May 29, 2019
For educational use only.
JRE: 1.8.0_202-release-1483-b39 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.3
kotlin plugin v1.3.30-release-IJ2019.1-1
XCode 10.2 (10E25)
- Create a “kotlin-mpp-test” project with IDEA via “Kotlin (Mobile Android/iOS)“.
- Set the “sdk.dir” in the “local.properties” in the root and init “gradlew” with “gradle wrapper --gradle-version 4.7 --distribution-type all”.
- Open iosApp/iosApp.xcodeproj with Xcode
- Run target “iosApp” on “iPhone XR”svyatoslav.scherbina
04/15/2019, 10:39 AMsunbreak
04/15/2019, 10:46 AMsvyatoslav.scherbina
04/15/2019, 10:58 AMInfo.plist
to your app
directory with contents like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>
2. Select iosApp
on the left pane in Xcode, then select app
under “TARGETS”, switch to “Build Settings” tab, look for “Packinging” section under it. Locate “Info.plist file”, it should have empty value. Change it to $(SRCROOT)/../app/Info.plist
.sunbreak
04/15/2019, 3:43 PM