itunes connect

Gitlab CI config

deploy_head:
  stage: deploy
  script:
  - cd xxx
  - ~/Documents/its_account.sh
  tags:
  - osx
  only:
   - /^xxx.*$/
  except:
  - branches
  artifacts:
      paths:
      - build/*.*ip*
its_account.sh
#!/usr/bin/env bash
#code that add user and password
ITUNES_CONNECT_USER=xxxx
ITUNES_CONNECT_PASSWORD=xxxx
fastlane-credentials add --username $ITUNES_CONNECT_USER --password $ITUNES_CONNECT_PASSWORD
fastlane xxx
fastlane-credentials remove --username $ITUNES_CONNECT_USER


Pilot

#Deliver to TestFlight
ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-t DAV"
pilot(
	username:'xxx@xxx.xxx',
	ipa:"#{output_path}/#{ipa_path}",
	skip_submission:true,
	wait_processing_interval:30
)

Problem

  1. Itunes connect has changed to invalid binary
    检查各种违规API,然后移除Reveal

  2.   Invalid Bundle. The bundle at 'today.appex' contains disallowed file 'Frameworks'.

    在today中用了pod,然后多了Frameworks空文件,移除.

    cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
    if [[ -d "Frameworks" ]]; then 
        rm -fr Frameworks
    fi
  3. [Transporter Error Output]: Could not start delivery: all transports failed diagnostics
    https://github.com/fastlane-old/deliver/issues/235

    ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-t DAV"
    pilot(
      ...
    )
  4. to be continue