building kivy app for ios fails (no teamID) - ios

I created a simple app using python 3.8.10 / kivy and was able to build and deploy an Android apk. I am now trying to build it for iOS. Following are installed.. using homebrew: autoconf automake libtool pkg-config. using pip: Cython==0.29.28, kivy-ios. Tried two approaches (maybe they are the same under the covers...newbie here)
Ran buildozer ios debug. When I initially ran this it was giving me errors about missing libraries which I installed and kept going. I have also wiped out the .buildozer directory to get a fresh install. About 20mins after the build process I got an error saying ios.codesign.debug was not filled in. I thought that was odd given that this was set ios.codesign.allowed = false. I followed the instructions in a this SO post to get the developer certificate.
When I then try the same command I get the following error
# Creating IPA...
# Run 'xcodebuild -exportArchive -archivePath "/Users/<snip>/MyApp/.buildozer/ios/platform/kivy-ios/MyApp-0.1.intermediates/MyApp-0.1.xcarchive" -exportOptionsPlist "/Users/<snip>/MyApp/.buildozer/ios/platform/kivy-ios/MyApp-ios/MyApp-Info.plist" -exportPath "/Users/<snip>/MyApp/.buildozer/ios/platform/kivy-ios/MyApp-0.1.intermediates/MyApp-0.1.ipa" CODE_SIGN_IDENTITY="Apple Development: nori.sangeeta#gmail.com (AX6CHB96V5)" ENABLE_BITCODE=NO'
# Cwd /Users/<snip>/MyApp/.buildozer/ios/platform/kivy-ios/MyApp-ios
2022-12-07 02:52:29.932 xcodebuild[4687:2833519] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/4k/q9h0y35d5f775bw_07lngvrr0000gs/T/MyApp_2022-12-07_02-52-29.930.xcdistributionlogs".
** EXPORT FAILED **
error: exportArchive: No "teamID" specified and no team ID found in the archive
Error Domain=IDEFoundationErrorDomain Code=1 "No "teamID" specified and no team ID found in the archive" UserInfo={NSLocalizedDescription=No "teamID" specified and no team ID found in the archive}
I took that to assume that ios.codesign.development_team.debug = <hexstring> has to be filled in but I have no idea what to put there! I tired "Personal Team" / same hex string as above, neither worked.
Following the instructions here
I am able to open xcode using open myapp-ios/myapp.xcodeproj but when I click on play, I don't get to "enjoy"(!), it tries to build and I eventually get an error.
The developer account is not a paid account and this is a simple prototype preferable without the need for codesign etc. If/when compiled, the app will be run on just 1 iPhone 13!!
Any thoughts?

Related

Export archive error for Xcode project containing app clip

We are using Jenkins to automate building of our iOS project. Everything was working just fine out of the box until we integrated App Clip into the Xcode project. The error says (I changed real bundle id):
error: exportArchive: Provide a bundle identifier to select from
available reformatters: com.example.myapp and com.example.myapp.Clip
Error Domain=IDEDistributionReformatterSelectionStepErrorDomain
Code=0 "Provide a bundle identifier to select from available reformatters:
com.example.myapp and com.example.myapp.Clip"
I created ExportOptions.plist and set distributionBundleIdentifier equal to com.example.myapp inside it. Then in Jenkins Advanced Xcode build options -> Custom xcodebuild arguments I added -exportOptionsPlist ExportOptions.plist.
Jenkins asked me to provide -exportArchive additional key. After I did it, Jenkins told that it's illegal to have scheme and exportArchive together in command line.
Does anyone have an idea how to fix it? Thanks.

No matching provisioning profiles found - NativeScript iOS deploy

I want to publish an update of my NativeScript app into AppStore. Until yesterday the following steps worked:
move into app directory (from Terminal)
execute tns publish ios
enter valid e-mail & password combination
Now I need to do another update, but I keep getting the following error:
=== BUILD TARGET HandyApp OF PROJECT HandyApp WITH CONFIGURATION Release ===
Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles matching an applicable signing identity were found.
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Command xcodebuild failed with exit code 65
# publish ios
I am working under Xcode 7.3. I checked my iPhone Developer certificate in Xcode and in my keychain, it is active and not expired. The Provisioning Profile is shown in Xcode. I ensured to use the certificate that is saved in apple.developer.com (by downloading it and replacing the old one in that directory).
I got:
my .mobileprovision
my .cer
my .p12
everything in the same directory.
Still there seems something not to be matching. I just can't figure out what might be running wrong. Does anyone know what else I could try to get it working?

Jenkins generated ipa couldnt install on iPhone (iOS 9 + XCode 7.1)

I am trying to implement Jenkins CI to generate build for iOS. I have latest Xcode 7.1 installed and ipa is getting generated without error. While trying to install the ipa through download link I am getting an error saying "Cannot install this time". Also I tried to install the same through iTunes, but getting an error saying "1 item could not be synced" and iTunes showing an error saying "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
Code signing certificate & provisioning profiles are proper and I am able to install the ipa generated from XCode.
Any help would be appreciated. Thanks :)
I was facing the same issue. Using Jenkins 2.5 and Xcode 7.3.1. Jenkins successfully build iOS app packaged the ipa, but the ipa did not install on the iPhone neither with iTunes nor when downloaded from TestFairy. Getting the same error "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
In the Jenkins logs I noticed following:
22:03:10 ### Checking original app
22:03:10 + /usr/bin/codesign --verify -vvvv /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app
22:03:10 Program /usr/bin/codesign returned 1 : [/Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10 ]
22:03:10 Codesign check fails : /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10
22:03:10 Done checking the original app
On further search found the answer posted by bladebunny at https://github.com/Carthage/Carthage/issues/782
Issue turned out to be duplicate package commands on Jenkins that resulted in the app being signed twice -- and then causing install to fail. Solution was to change Jenkins Xcode plugin settings. Under the 'General Build Settings' - we found you can't check both "Generate Archive" and "Pack application and build .ipa?" settings. The plugin issues log seems to suggest the former setting is being deprecated. We use the latter setting and are now able to successfully deploy the app with our custom dynamic framework.
The above fix worked for me.

building xcode project from jenkins fails. when building in command line runs just fine. why?

building xcode project from jenkins fails.
when building in command line runs just fine.
why?
this is is the error I get:
[BEROR]Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “_UUID_”, however, no such provisioning profile was found.
[BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'
this is the command line used:
xcodebuild -project PROJECTNAME.xcodeproj/ -target TARGETNAME -configuration Release -sdk iphoneos7.1 clean build
ps: anything with OBJECT was censored so this question can appear online, there was real data there before.
Are you using the login key-chain or did you create a different key-chain for jenkins builds app signing?
If you are just using the login key-chain make sure you unlock the key-chain during the build.
If you are using a different key-chain make sure you swap key-chains and then unlock it.
Jenkins - Xcode build works codesign fails - this thread is quite informative.
Also adding these 2 commands to your build can help you debug it:
/usr/bin/security list-keychains
/usr/bin/security find-identity

Running OClint in Xcode bots

Hey i want to run oclint using Xcode bots.
Currently what i am doing is runing oclint as a post build run script.
But it is always unable to find the provisioning profile.
Here is what i am doing
xcodebuild -target MyTarget -configuration Debug clean build | tee xcodebuild.log
oclint-xcodebuild
oclint-json-compilation-database -- -max-priority-1 99999 -max-priority-2 99999 -max-priority-3 99999
and this is the output that i get from the xcode bot
[BEROR]Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “6F753CA0-4435-40FF-B2F4-15B64D0F7AEE”, however, no such provisioning profile was found.
[BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'
Although normal builds without oclint work fine.
I had this error, and if you switch the provisioning profile to Automatic it will build successfully on the Xcode Bot. However, this may not work for actually building your project, but it should get the bot working for you to verify that there isn't another issue with it.

Resources