Skip to content

ipa file not found error during device builds #5585

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

Closed
erjdriver opened this issue Oct 1, 2021 · 6 comments
Closed

ipa file not found error during device builds #5585

erjdriver opened this issue Oct 1, 2021 · 6 comments

Comments

@erjdriver
Copy link

My tns info results.

✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 6.7.8 and the latest available version is 8.1.3.
✔ Component tns-core-modules has 6.5.27 version and is up to date.
✔ Component tns-android has 6.5.3 version and is up to date.
✔ Component tns-ios has 6.5.4 version and is up to date.

Doing a build tns build ios --for-device --env.uglify --release --provision "xxxx" and getting the following error

** EXPORT SUCCEEDED **

Project successfully built.
No .ipa found in /Users/mini/Projects/xxx/platforms/ios/build/Release-iphoneos directory.

There's an .ipa file in the folder.

My xcode version is 12.5.1 and I would prefer not to update.

I'm using NS 6 and have added the fixes on How to Fix NativeScript Issue with iOS14 and XCode 12

@rigor789
Copy link
Member

rigor789 commented Oct 1, 2021

@erjdriver try the latest CLI - believe this has been fixed not too long ago. The latest version of the CLI should be able to run the ns6 project without issues - but in some cases you may need to add the --force flag.

@erjdriver
Copy link
Author

It seems like the latest CLI is not compatible with ns6 - incompatible with nsconfig.json - wants me to upgrade the project.

That'll start me down a slippery slope i'm sure.

most probably i'll go back to CLI 6.7.8

Any way to solve this without upgrading the project.

@rigor789
Copy link
Member

rigor789 commented Oct 1, 2021

Did you try with --force? Should have no trouble reading the legacy nsconfig.json

The fix landed here - you can try patching your global CLI with the change, or revert the change to CFBundleName: #5427

@rigor789 rigor789 transferred this issue from NativeScript/ios-jsc Oct 1, 2021
@erjdriver
Copy link
Author

erjdriver commented Oct 1, 2021

I went back to the latest CLI and doing a simulator build

tns --force build ios

and getting the following error in red after what looks like a successful build

Webpack compilation complete.
cp: no such file or directory: /Users/mini/Projects/xxx/App_Resources/iOS/*

That folder structure is different than what I have for NS 6.* /Users/mini/Projects/xxx/app/App_Resources/iOS/*

My tns info

✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.1.3 version and is up to date.
✔ Component tns-core-modules has 6.5.27 version and is up to date.
✔ Component tns-ios has 6.5.4 version and is up to date.
✔ Component tns-android has 6.5.3 version and is up to date.

I'm getting the following warning at the beginning of the build

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                                                           *
*  The platforms/ios folder appears to be invalid. If the build fails, run 'ns clean' and rebuild the app.  *
*                                                                                                           *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This after deleting the platforms/ios folder and reinstalling

tns platform add [email protected]

The folder structure I have is compatible with NS 6.x - main app folder/app/App_Resources/iOS

Looks like this latest CLI is expecting another folder structure.

@rigor789
Copy link
Member

rigor789 commented Oct 1, 2021

You may need to explicitly set appResourcesPath to app/App_Resources in the nsconfig, I believe that should work

@erjdriver
Copy link
Author

Thanks - that solved the problem.

Curiously - my nsconfig.json file was blank.

I added your suggestion and now even the iphone device build works.

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

2 participants