Xcode 14 error Build input file cannot be found metadata-arm64

Hello,

I developed an application with nativescript, for mobiles and now I am trying to build the IPA file for the release. Right now I am facing an issue that I can't solve, I try to launch "build" from Xcode panel but I always get this error : "Build input file cannot be found: '/Users/username/Documents/name_of_app/tuto-app/platforms/ios/Build/Products/Debug-iphoneos/metadata-arm64.bin'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?"

I work with Xcode version : 14 recently updated.

It looks like there is something with arm64... I require ios 13 as minimum.

Has anyone faced this problem ? Have you any solution or workaround ? Thanks a lot.

Answered by JulienGP in 730891022

Hello there !

I finally found the solution :

1/ Change workspace setting > Build location > Custom & relative to workspace

2/ Go to "build phase" then "prebuild nativescript" then add the name of directory&file required in "output files" (for me /my_project/platforms/ios/build/..../arm64 etc...).

I hope this will help !

Accepted Answer

Hello there !

I finally found the solution :

1/ Change workspace setting > Build location > Custom & relative to workspace

2/ Go to "build phase" then "prebuild nativescript" then add the name of directory&file required in "output files" (for me /my_project/platforms/ios/build/..../arm64 etc...).

I hope this will help !

How can I get this "change workspace setting  > Build location > Custom & relative to workspace"? Can someone help me where is it in XCode 14?

File > Workspace Setting (at the end on the menu) > "Derived Data" click that dropdown.

I don't understand the second option add the name of directory&file required in "output files"

I have the same issue, but I can't find "prebuild nativescript" in my Build Phases. I just find "Output Files" in another places, like [CP] Copy Pods Resources and Embed Pods Framework. My path is different but I guess is the same problem. Error: error build: Build input file cannot be found: '/Users/Guilherme/Documents/VisionWithRoom/DerivedData/VisionWithRoomExample/Build/Products/Debug-iphoneos/VisionWithRoomExampleObjC.app/VisionWithRoomExampleObjC'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

I have the same issue and somehow I can not resolve it following the recommendation above. confused and helpless. Anyone?

I do not understand the instructions

change workspace setting > Build location > Custom & relative to workspace

@chebby_ ?

in the image there are 2 options. there is no option " Custom & relative to workspace"

Is there a update to fix this?

Even i'm facing this issue while renaming app name i resolved

  1. Go to targets
  2. Build settings
  3. Go to info.plist and change info.plist file name to "your appname"/info.plist

Does anyone know how to have these output files config somewhere inside the App_Resources folder so, whenever i remove and add the platform i don't want to do these configurations each time

Xcode 14 error Build input file cannot be found metadata-arm64
 
 
Q