I’m having trouble building ios apps from commandl...
# kotlin-native
r
I’m having trouble building ios apps from commandline via xcodebuild when they import Kotlin code via the auto-generated embedAndSignAppleFrameworkForXcode task. Building from Xcode itself works fine, but if I do a command like this
xcodebuild -sdk iphoneos -configuration Debug -workspace ./sample/app-ios/SettingsDemo.xcodeproj/project.xcworkspace -scheme SettingsDemo build
then I get this error when hits that gradle task in the script phase
Copy code
A problem was found with the configuration of task ':shared:embedAndSignSharedAppleFrameworkForXcode' (type 'Copy').
  - Type 'Copy' property 'sign' doesn't have a configured value.
    
    Reason: This property isn't marked as optional and no value has been configured.
    
    Possible solutions:
      1. Assign a value to 'sign'.
      2. Mark property 'sign' as optional.
    
    Please refer to <https://docs.gradle.org/7.0/userguide/validation_problems.html#value_not_set> for more details about this problem.
Does anyone have insight on what’s going wrong, or what else I can pass to xcodebuild to better mimic what’s happening when I build from the Xcode UI?
Hm, I think my issue may have been that I was also passing CODE_SIGNING_ALLOWED=NO to xcodebuild and then got confused when isolating things
h
Hey, were you able to resolve this issue? I'm stuck on the same, can you please help?