Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Example xcode project unable to build with command line

Notifications You must be signed in to change notification settings

rcavaltw/multiplatform_xcode_error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project can be built inside xcode 10.2 (or 10.2.1) but cannot be built via the command line using xcodebuild, through fastlane.

In order to reproduce the problem:

  1. enter the Example folder and run bundle install && pod install
  2. Open example.xcworkspace in Xcode
  3. Build the Example scheme. It should build perfectly
  4. Now at the terminal, go to the Example folder
  5. make sure your xcode build version is +10.2 with xcodebuild -version
  6. run bundle exec fastlane build_ios. If the build runs perfectly, try executing the same comand again.

You'll notice that the build logs:

19:27:15]: ▸ Processing Clappr-tvOS-Info.plist
[19:27:15]: ▸ TARGETED_DEVICE_FAMILY value (3) does not contain any device family values compatible with the iOS platform. Please add one or more of the following values to the TARGETED_DEVICE_FAMILY build setting to indicate the device families supported by this target: '1' (indicating 'iphone'), '2' (indicating 'ipad').

xcodebuild will try to process Clappr-tvOS-Info.plist, which it is not supposed to do, as it is this is an iOS build, and the plist refers to a tvOS bundle. The warning log also indicates that. The build will fail as other resources are not present in iphoneos.

The same steps will work if you use xcodebuild 10.1

About

Example xcode project unable to build with command line

Resources

Stars

Watchers

Forks

Packages

No packages published