Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: '~/DerivedData #743

Open
d-warfield opened this issue Feb 7, 2024 · 9 comments
Open

No such file or directory: '~/DerivedData #743

d-warfield opened this issue Feb 7, 2024 · 9 comments

Comments

@d-warfield
Copy link

d-warfield commented Feb 7, 2024

The following error occurs when running my app on an actual phone (not the simulator):

No such file or directory: '~/DerivedData/apple-client-kjiouewknasoiuqwelk/Build/Products/Debug-iphoneos/PackageFrameworks/PhoneNumberKit-Dynamic.framework/PhoneNumberKit-Dynamic'

It does, however, run fine on the simulator. Any ideas what's going on?

iPhone Model: iPhone 14 Pro Max
iOS Version: 17.3
Xcode Version: 15.2

@mfan0425
Copy link

mfan0425 commented Mar 2, 2024

Same issue with me

@mfan0425
Copy link

mfan0425 commented Mar 2, 2024

It looks like a version issue. It might have been resolved. I updated the package to the latest version (3.7.9) and the issue disappeared.

@ibrahim-alzant
Copy link

ibrahim-alzant commented Mar 9, 2024

Don't add the dynamic library.

@ashoukr
Copy link

ashoukr commented Apr 18, 2024

Don't add the dynamic library.

This did not work.

@workhitesh
Copy link

Same issue with me too

@ashoukr
Copy link

ashoukr commented Apr 26, 2024

Solution is to compile the project via command line.

@Mohamed-Khaterr
Copy link

Solution is to compile the project via command line.

When I try to build project via command line I did get this error

The following build commands failed: Copy /Users/UserName/Documents/MyApp/MyApp/build/Release-iphoneos/MyApp.app/PhoneNumberKit_PhoneNumberKit.bundle /Users/UserName/Documents/MyApp/MyApp/build/Release-iphoneos/PhoneNumberKit_PhoneNumberKit.bundle (in target 'MyApp' from project 'MyApp')

@ashoukr
Copy link

ashoukr commented Apr 26, 2024

what I did exactly was remove the package, remove the derived data, reinstall the package, build via Xcode cli.

Solution is to compile the project via command line.

When I try to build project via command line I did get this error

The following build commands failed: Copy /Users/UserName/Documents/MyApp/MyApp/build/Release-iphoneos/MyApp.app/PhoneNumberKit_PhoneNumberKit.bundle /Users/UserName/Documents/MyApp/MyApp/build/Release-iphoneos/PhoneNumberKit_PhoneNumberKit.bundle (in target 'MyApp' from project 'MyApp')

@iosdeviguru
Copy link

iosdeviguru commented May 2, 2024

Follow this same steps and same version it will solve this issue on real device

From Xcode 11+ :

Select File > Swift Packages > Add Package Dependency. Enter https://github.com/marmelroy/PhoneNumberKit.git in the "Choose Package Repository" dialog.
In the next page, specify the version resolving rule as "Up to Next Major" from "3.7.0".
After Xcode checked out the source and resolving the version, you can choose the "PhoneNumberKit" library and add it to your app target.

NOTE: Don't include Dynamic library only PhoneNumberKit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants