Closed jmatsu closed 5 years ago
I'll give it a try 🙋♂️
I've started working on this issue, but I have a question. How can I build the iOS app for release? I simply changed the build configuration to "Release" and run, then I got a linker error. I think the reason is related this linker warning:
ld: warning: ignoring file /Users/ichi/Projects/private/DroidKaigi2019/conference-app-2019/frontend/ioscombined/build/xcode-frameworks/ioscombined.framework/ioscombined, file was built for x86_64 which is not the architecture being linked (i386):
Can anyone tell me how? 🙏
thanks, I'll assign you!
What was the command you were using to build the release app?
@panpanini Thanks for your support. I did the following steps in Xcode:
I did the following step for release.
And I did your steps. It became same error 😭
Can you try checking the Build Active Architecture Only
setting? It should be set to No
(The problem is that for the simulator, we need an i836 library, but only an x86_64 was built)
I don't know for that setting. But it relates here. https://github.com/DroidKaigi/conference-app-2019/blob/master/frontend/ioscombined/build.gradle#L7
The setting is below:
Anyway, I also did @takahirom way, archive targeting Generic iOS Device, but I got same error.
ld: warning: ignoring file /Users/ichi/Projects/private/DroidKaigi2019/conference-app-2019/frontend/ioscombined/build/xcode-frameworks/ioscombined.framework/ioscombined, file was built for x86_64 which is not the architecture being linked (arm64): /Users/ichi/Projects/private/DroidKaigi2019/conference-app-2019/frontend/ioscombined/build/xcode-frameworks/ioscombined.framework/ioscombined
file was built for x86_64 which is not the architecture being linked (arm64)
I have no idea why it is built for x86_64. I think it is for simulator.
Sorry, when I release it. I also did the following steps. 🙇
Clean build folder
I set it
iosX64('iOS')
↓
iosArm64('iOS')
Set team.
Archive
Ah, thanks. After changing iosX64('iOS')
to iosArm64('iOS')
in ioscombined/build.gradle (and also changing bundle ID to my own and setting team), I finally succeeded to archive 🎉
Kind (Required)
New feature
Overview (Required)
Change api endpoints based on Schema for iOS app
https://github.com/DroidKaigi/conference-app-2019/blob/master/data/api-impl/build.gradle#L73 should be used for the release build
Links
https://github.com/DroidKaigi/conference-app-2019/blob/master/data/api-impl/src/iosMain/kotlin/io/github/droidkaigi/confsched2019/data/api/ApiEndpoint.kt#L3