Skip to content

Missing .xcfilelist when running on iOS #2

@mersiades

Description

@mersiades

I have a project (react native, Expo) that uses Branch.io deeplinks but deferred deep linking is not working.

I'd like to use this example project to confirm that the Branch configuration is good and that the problem lies within the Expo app.

However, this example project is not working for me either.

When I run npm run ios (Simulator) or npx react-native run-ios --configuration Release --device "iPhone" (physical device) I get this error:

michael@YXwogC browser_example % npm run ios

> [email protected] ios
> react-native run-ios

info Found Xcode workspace "browser_example.xcworkspace"
info Found booted iPhone
info Building (using "xcodebuild -workspace browser_example.xcworkspace -configuration Debug -scheme browser_example -destination id=00008020-001971690C04002E")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening browser_example.xcworkspace.

// ...

error: Unable to load contents of file list: '/Target Support Files/Pods-browser_example/Pods-browser_example-frameworks-Debug-input-files.xcfilelist' (in target 'browser_example' from project 'browser_example')
error: Unable to load contents of file list: '/Target Support Files/Pods-browser_example/Pods-browser_example-frameworks-Debug-output-files.xcfilelist' (in target 'browser_example' from project 'browser_example')
error: Unable to load contents of file list: '/Target Support Files/Pods-browser_example/Pods-browser_example-resources-Debug-input-files.xcfilelist' (in target 'browser_example' from project 'browser_example')
error: Unable to load contents of file list: '/Target Support Files/Pods-browser_example/Pods-browser_example-resources-Debug-output-files.xcfilelist' (in target 'browser_example' from project 'browser_example')

I thought pod update might fix the problem, but that results in its own error:

michael@YXwogC ios % pod update
/opt/homebrew/Cellar/ruby/3.3.2/lib/ruby/3.3.0/rubygems/specification.rb:1408:in `rescue in block in activate_dependencies': Could not find 'minitest' (>= 5.1) among 104 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/michael/.rvm/gems/ruby-2.7.6:/Users/michael/.rvm/gems/ruby-2.7.6@global:/opt/homebrew/Cellar/cocoapods/1.15.2/libexec' at: /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/specifications/activesupport-7.1.3.gemspec, execute `gem env` for more information

My cocoapods is installed using brew (not gem).

michael@YXwogC ~ % brew list cocoapods
Warning: Treating cocoapods as a formula. For the cask, use homebrew/cask/cocoapods or specify the `--cask` flag.
/opt/homebrew/Cellar/cocoapods/1.15.2/bin/pod
/opt/homebrew/Cellar/cocoapods/1.15.2/bin/xcodeproj
/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/ (5 files)
/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/cache/ (34 files)
/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/doc/ (11485 files)
/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/extensions/ (4 files)
/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/ (2166 files)
/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/specifications/ (34 files)
/opt/homebrew/Cellar/cocoapods/1.15.2/sbom.spdx.json

I'm using rvm to set the Ruby version to match the .ruby-version in the example project

michael@YXwogC browser_example % rvm current
ruby-2.7.6
michael@YXwogC ios % gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 3.1.6
  - RUBY VERSION: 2.7.6 (2022-04-12 patchlevel 219) [arm64-darwin23]
  - INSTALLATION DIRECTORY: /Users/michael/.rvm/gems/ruby-2.7.6
  - USER INSTALLATION DIRECTORY: /Users/michael/.gem/ruby/2.7.0
  - RUBY EXECUTABLE: /Users/michael/.rvm/rubies/ruby-2.7.6/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /Users/michael/.rvm/gems/ruby-2.7.6/bin
  - SPEC CACHE DIRECTORY: /Users/michael/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/michael/.rvm/rubies/ruby-2.7.6/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - arm64-darwin-23
  - GEM PATHS:
     - /Users/michael/.rvm/gems/ruby-2.7.6
     - /Users/michael/.rvm/gems/ruby-2.7.6@global

So, if this is a problem with the example project, please fix it or at least help me find a workaround.

And if the problem is me not using the project properly, please update the readme to make it easier for us to use this example project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions