React Native Xcode Archive 오류(Multiple commands produce)

Expo BareWorkFlow 개발 후 Xcode에서 Archive 중 다음 오류가 발생하고 장애가 발생했습니다.


과거에 여러 차례 Airchive가 TestFlight에 사용되었다
  • Expo SDK41로 업그레이드
  • 가방 몇 개 담았어요.
    나는 이 부근의 일이 원인이라고 생각한다
  • Multiple commands produce '/Users/{username}/Library/Developer/Xcode/DerivedData/bareworkflowapp-henuevdurellpvajhhfkbdqjwjmp/Build/Intermediates.noindex/ArchiveIntermediates/bareworkflowapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle':
    1) Target 'React-Core.common-AccessibilityResources' has create directory command with output '/Users/{username}/Library/Developer/Xcode/DerivedData/bareworkflowapp-henuevdurellpvajhhfkbdqjwjmp/Build/Intermediates.noindex/ArchiveIntermediates/bareworkflowapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
    2) Target 'React-Core.common-CoreModulesHeaders-AccessibilityResources' has create directory command with output '/Users/{username}/Library/Developer/Xcode/DerivedData/bareworkflowapp-henuevdurellpvajhhfkbdqjwjmp/Build/Intermediates.noindex/ArchiveIntermediates/bareworkflowapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
    

    해본 일


    해도 고칠 수 없어...
    다양한 구글에서 좋은 issue를 발견할 수 있어요.
    https://github.com/react-native-community/upgrade-support/issues/100#issuecomment-804264321

    Podfile에 다음 기술을 추가합니다.


    post_install do |installer|
     installer.pods_project.targets.each do |target|
      if target.name == "React-Core.common-AccessibilityResources"
       target.remove_from_project
      end
     end
    end
    
    시뮬레이터나 실제 debug에서 이 오류가 발생하지 않습니다
    가끔 스트레스를 많이 받는 것 같아요.
    Expo만 있다면 Archeive는 지령이라 쉬워요.
    엑스코드는 평소에 잘 쓰지 않기 때문에 조사하는 일이 많습니다.
    (자기가 쓴 노트)

    좋은 웹페이지 즐겨찾기