Michael
12/02/2021, 4:11 PMTask 'embedAndSignAppleFrameworkForXcode' not found in project ':shared'.
Adding --debug
or --stacktrace
to the task doesn't really help. I usually have to just randomly change things till it starts working. Is there a way to know the specific reason for the task failing. I know for a fact that it's generated when run from XCode
but that's about it. Any debugging tips? 😅
Thanks in advance.
Also. Is the source code available on Github? 🤔strooooke
12/02/2021, 4:20 PMstrooooke
12/02/2021, 4:20 PMMichael
12/02/2021, 4:21 PMTijl
12/02/2021, 7:42 PMgrahamborland
12/07/2021, 11:55 AMMichael
12/07/2021, 2:44 PMMichael
12/07/2021, 2:45 PMnschulzke
12/09/2021, 5:15 PMMichael
12/09/2021, 5:22 PMnschulzke
12/09/2021, 5:38 PMnschulzke
12/09/2021, 5:38 PMMichael
12/09/2021, 6:05 PMgrahamborland
12/09/2021, 6:05 PMpod install
command failed), which is why I went with the Framework option. I’m using an M1 Mac. So far I have completely failed to get anything working for iOS.nschulzke
12/09/2021, 6:05 PMpod install
command?grahamborland
12/09/2021, 6:06 PM* What went wrong:
Execution failed for task ':shared:podInstall'.
> 'pod install' command failed with code 1.
Error message:
Please, check that podfile contains following lines in header:
source '<https://cdn.cocoapods.org>'
Please, check that each target depended on shared contains following dependencies:
Michael
12/09/2021, 6:07 PMnschulzke
12/09/2021, 6:09 PMpod install
from the iOS directory work? I don't use any pods from within build.gradle.kts
, so I never ran :shared:podInstall
(which is meant for loading pods specified as gradle dependencies). I ran :shared:podspec
and then pod install
from the iOS directory, and now they're linked up correctly.nschulzke
12/09/2021, 6:09 PMios.deploymentTarget = "12.1"
grahamborland
12/10/2021, 11:01 AMpod install
in the iosApp
directory causes this funky failure.
graham@grahams2021mbp ~/W/K/iosApp> pod install
Analyzing dependencies
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x00000001007f0000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
grahamborland
12/10/2021, 1:19 PMcocoapods
from Homebrew instead of gem install
. Courtesy of this comment:
https://github.com/CocoaPods/CocoaPods/issues/9907#issuecomment-901790027
After doing that, I then quit Android Studio and recreated my KMM project, and it worked. I also had to uncomment the iosSimulatorArm64Main
lines in the shared build.gradle.kts
to get the app to build and run on the iOS simulator.