question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New error after fresh install; Stop at ProcessProductPackaging

See original GitHub issue

Related to #327

There is new error after fresh install.

tns create MobileApp --ng

tns plugin add nativescript-plugin-firebase

tns run ios

Create product structure /bin/mkdir -p /Users/devel/ntv/MobileApp/platforms/ios/build/emulator/MobileApp.app

ProcessProductPackaging β€œβ€ /Users/devel/Library/Developer/Xcode/DerivedData/MobileApp-aaohjqrvwtifihalptrdzutcoadu/Build/Intermediates/MobileApp.build/Debug-iphonesimulator/MobileApp.build/MobileApp.app.xcent cd /Users/devel/ntv/MobileApp/platforms/ios export PATH=β€œ/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/opt/dnscrypt-proxy/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands” builtin-productPackagingUtility -entitlements -format xml -o /Users/devel/Library/Developer/Xcode/DerivedData/MobileApp-aaohjqrvwtifihalptrdzutcoadu/Build/Intermediates/MobileApp.build/Debug-iphonesimulator/MobileApp.build/MobileApp.app.xcent warning: Falling back to contents of entitlements file β€œMobileApp.entitlements” because it was modified during the build process. Modifying the entitlements file during the build is unsupported.error: The file β€œMobileApp.entitlements” couldn’t be opened because there is no such file.

** BUILD FAILED **

The following build commands failed: ProcessProductPackaging β€œβ€ /Users/devel/Library/Developer/Xcode/DerivedData/MobileApp-aaohjqrvwtifihalptrdzutcoadu/Build/Intermediates/MobileApp.build/Debug-iphonesimulator/MobileApp.build/MobileApp.app.xcent (1 failure) Command xcodebuild failed with exit code 65

There is no issue when build on android.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kglowackicommented, Dec 4, 2017

For me this problem was caused by project folder name not matching name of entitlements file I’ve created and added to app/App_Resources/iOS. It has to be the same.

0reactions
charalamposccommented, Jul 20, 2017

Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42) node: v6.9.1 cocoapods: /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods.rb tns info:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Component        β”‚ Current version β”‚ Latest version β”‚ Information β”‚
β”‚ nativescript     β”‚ 3.1.2           β”‚ 3.1.2          β”‚ Up to date  β”‚
β”‚ tns-core-modules β”‚ 3.1.0           β”‚ 3.1.0          β”‚ Up to date  β”‚
β”‚ tns-android      β”‚ 3.1.1           β”‚ 3.1.1          β”‚ Up to date  β”‚
β”‚ tns-ios          β”‚ 3.1.0           β”‚ 3.1.0          β”‚ Up to date  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

I create a new project:

$ tns create iostest
Installing  tns-template-hello-world
/somewhere/iostest
└─┬ tns-template-hello-world@3.1.0
  └── nativescript-theme-core@1.0.4

Installing  tns-core-modules
/somewhere/iostest
└─┬ tns-core-modules@3.1.0
  └── tns-core-modules-widgets@3.1.0

Project iostest was successfully created.

then

$ cd iostest

and

$ tns run ios
Searching for devices...
Copying template files...
  β—œ Installing tns-iosInstalling  tns-ios
/somewhere/iostest
└── tns-ios@3.1.0

Project successfully created.
Preparing project...
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Project successfully prepared (iOS)
Building project...

...

warning: Falling back to contents of entitlements file "iostest.entitlements" because it was modified during the build process. Modifying the entitlements file during the build is unsupported.error: The file β€œiostest.entitlements” couldn’t be opened because there is no such file.

** BUILD FAILED **


The following build commands failed:
	ProcessProductPackaging "" build/iostest.build/Debug-iphonesimulator/iostest.build/iostest.app.xcent
(1 failure)
Unable to apply changes on device: A176F414-7050-4742-8B35-1B2DDAB865FE. Error is: Command xcodebuild failed with exit code 65.

so the problem is still there.

I tried the workaround described in this issue, so I created the file iostest.entitlements in App/App_Resources/iOS and pasted the content as described.

I removed the ios platform, recreated it, and run the app in the emulator again.

The error is still the same.

In the platforms directory, I can see: 2017-07-20 01 43 47 pm

So, something is working the wrong way.

In another project, before the upgrade to 3.1.2, the workaround worked fine…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 fresh install fails with stop code 0xc0000021a
7. Close the command prompt window. 8.Continue the Windows Setup installation. When choosing an installation type, select Custom. The drive willΒ ...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not beΒ ......
Read more >
How to Fix Windows Update Failed to Install Error? - YouTube
How to fix Windows update failed to install error ? Are you facing issues while updating Windows 10? In this video, you will...
Read more >
Resolving 'A media driver is missing' error during Windows 10 ...
That could explain why you're struggling with the 'A media driver is missing' error when trying to clean install Windows 11. Solution 4:...
Read more >
"Install error 1603: Fatal error during installation" while ...
Clean uninstall and reinstall the Autodesk Desktop Licensing Service Β· Make sure you have a copy of the software installer (for step 3)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found