Application could not be uploaded on device - visual-studio

I have a crossplatform solution for an application. I have recently tried to add push notifications functionality for my IOS project.
But when i try to install my project on my ios i get this error.
Package Inspection Failed Error (error: 0xe8000051).
I have tried:
- Cleaning solution
- rebuild
- checking build action for my info.plist
- removing bin folder
the full trace of the install looks like this:
PreflightingApplication - PercentComplete: 30%
PackageInspectionFailed: Failed to load Info.plist from bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.xhvJhV/extracted/ODEON.iOS.app/Frameworks/PersonalizedAdConsent.framework
error MT1006: Could not install the application '/Users/anderslarsen/Documents/Projects/ODEON/ODEON/ODEON.iOS/bin/iPhone/Release/ODEON.iOS.app' on the device 'Anders - iPhone': Package Inspection Failed Error (error: 0xe8000051).
Can anyone help me with this error?
Thanks in advance!

I could not find the reason this happens and I researched a lot, 2 years after this question was done I'm still getting this error. From my personal experience, manually deleting "bin" and "obj" and then building the iOS project again would solve the issue.

Related

Nativescript - cannot run android on device

I used to be able to run on android and all of a sudden I am getting this error (see below).
The only thing I recall changing is downgrading "nativescript-ui-listview" to "^7.1.0" and "nativescript-ui-sidedrawer" to "~7.0.0" because it otherwise breaks on ios 12.
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (android)
Installing on device f180a829...
More than one .apk found in /Users/manuelmaestrini/Programming/spiio-development/spiiomobile/platforms/android/app/build/outputs/apk directory. Using the last one produced from build.
Successfully installed on device with identifier 'f180a829'.
Application com.spiio.mobile is not running on device f180a829.
This issue may be caused by:
* crash at startup (try `tns debug android --debug-brk` to check why it crashes)
* different application identifier in your package.json and in your gradle files (check your identifier in `package.json` and in all *.gradle files in your App_Resources directory)
* device is locked
* manual closing of the application
Unable to apply changes on device: f180a829. Error is: Application com.spiio.mobile is not running.
Any idea what might be? I tried to do --clean, remove node_modules, hooks, platforms, uninstall and reinstall webpack etc but no luck...

xcodebuild (XCode 7.1) - unexpected successful exit code from cancelled command

I'm getting the following during the bundle resources copying phase in xcodebuild (XCode 7.1):
2015-11-03 22:16:28.218 xcodebuild[28202:300463] DVTAssertions:
Warning in
/Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-9061/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:739
Details: unexpected successful exit code from cancelled command
<C0505:'CpResource Foo.json':P10> Object: <PBXTargetBuildContext:
0x7faec015a440> Method:
-createCommandInvocationRecordFromInvocation: Thread: <NSThread: 0x7faebc8cc070>{number = 10, name = (null)} Please file a bug at
http://bugreport.apple.com with this warning message and any useful
information you can provide.
I have ~170 items I'm copying, but for some reason a few of them give me this error.
EDIT - I just ran the command again and now it works, so it doesn't seem deterministic.
The issue was a duplicate folder in the Copy Bundle Resources section. It used to be two different files, but they were moved so XCode decided to change them both to the folder they got moved into. Go figure.
Had this issue a couple of months ago. Today that error made it's comback.
I have it only if I try to emulate from ionic (--livereload) on a iOS-Device. Seem like if you have Xcode running it occurs. Close Xcode. That fixes it.

Crashlytics updated to Fabric: Unable to copy dSYM

I've updated my project from Crashlytics to Fabric. I've followed all steps in the Fabric Mac app but now my app simple won't build more than once without cleaning.
When I use Product > Clean, I can build my app once. The next time I try, building fails again.
What can I do to fix this issue?
2015-07-17 12:10:58.602 run[10802:603564]
Fabric.framework/run 1.3.16
2015-07-17 12:10:58.958 run[10802:603564]
Unable to copy dSYM at path /Users/username/Library/Developer/Xcode/DerivedData/appname-byhgrsorkjornnaplkksbbzmvfel/Build/Products/Debug-iphonesimulator
to path /Users/username/Library/Caches/com.crashlytics.mac/5b91b14e832a7b1c29441ec5ba109810/builds/86A88558-0818-40BB-9EF5-B4816707A076/appname dev.app.dSYM
Error Domain=NSCocoaErrorDomain Code=4 "The file “DWARF” doesn’t exist." UserInfo=0x10010c960
{
NSSourceFilePathErrorKey=/Users/username/Library/Developer/Xcode/DerivedData/appname-byhgrsorkjornnaplkksbbzmvfel/Build/Products/Debug-iphonesimulator/appname dev.app.dSYM/Contents/Resources/DWARF, NSUserStringVariant=(Copy),
NSDestinationFilePath=/Users/username/Library/Caches/com.crashlytics.mac/5b91b14e832a7b1c29441ec5ba109810/builds/86A88558-0818-40BB-9EF5-B4816707A076/appname dev.app.dSYM/Contents/Resources/DWARF, NSFilePath=/Users/username/Library/Developer/Xcode/DerivedData/appname-byhgrsorkjornnaplkksbbzmvfel/Build/Products/Debug-iphonesimulator/ticketveiling dev.app.dSYM/Contents/Resources/DWARF,
NSUnderlyingError=0x10010c6a0 "The operation couldn’t be completed. No such file or directory"
}
Command /bin/sh failed with exit code 1
It looks like updating Fabric/Crashlytics solved my problem!
pod update 'Crashlytics'
Installing Crashlytics 3.1.0 (was 3.0.11)
Update: I guess I spoke a bit too soon. The issue isn't completely fixed, but at least I have to clean a lot less than before.
add cleaning to your build scripts

Hipster stack (Yeoman + Maven + Spring) Error

When I tried to generate with yo jhipster on Windows 7 32 bits machine, I got the below error:
bower json3#~3.2.5 progress received 3.7MB of 4.9MB
downloaded, 75% libjpeg-62.dll: downloading [===================]
100% 0.0s
? pre-build test failed, compiling from source...
d:\Self_jhipster\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin\
lib\check.js:19
throw new Error('building is not supported on ' + process.platform);
^ Error: building is not supported on win32
at d:\Self_jhipster\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin\lib\check.js:19:10
How to solve this error?
I'm the author of http://jhipster.github.io/ which is the generator your are referring to.
I have found your problem, it is indeed a bug in jpegtran-bin. I have updated all the dependencies in Grunt.js, and it should now work fine on Windows.
This will be commited in the next release (0.2.1), which should be out in a few hours.
You can also submit a bug at https://github.com/jhipster/generator-jhipster/issues
After google with more correct keywords, the solution from https://github.com/gruntjs/grunt-contrib-imagemin/issues/109 works for me.
In application's package.json, add "jpegtran-bin": "0.2.0" before
the reference for imagemin,
Remove node_module folder locally.
Run npm install again.

Xcode 5 Tests Not Running

I get the following message from Xcode when I try to run my tests:
2013-11-13 09:02:57.849 MyProject[378:303] Error loading /Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests: dlopen(/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests, 262): no suitable image found. Did find:
/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests: open() failed with errno=1
IDEBundleInjection.c: Error loading bundle '/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest'
This question has already been asked here: Xcode 5 throws "Library not loaded" error when adding a test target
but the solution doesn't apply to me as this is a Mac app. Any ideas?
Do you have App Sandbox under Capabilities for your target enabled? Switching that off worked for me.
This is because of sandboxing.
Same issue also happens with OCUnit (in both Xcode 4 and 5): XCTest - "Test failed"
There's instructions for testing a sandboxed app here:
http://marcschwieterman.com/blog/testing-in-the-sandbox/

Resources