Dear friend, we, the rest of the NativeScript community really
appreciate your feedback! While we are doing all we can to take care of every
issue, sometimes we get overwhelmed. Because of that, we will consider issues
that are not constructive or problems that cannot be reproduced "dead".
Additionally, we will treat feature requests or bug reports with unanswered
questions regarding the behavior/reproduction for more than 20 days "dead". All
"dead" issues will get closed.
Yes
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
only on iOS with a real device . Runs fine on android and with the IOS emulator.
package.json file of yourThe project builds and runs fine on the emulator, but when I try tns run ios with a real device connected it fails with the error shown below:
Xcode build...
2017-10-22 14:14:29.951 xcodebuild[69327:634958] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/73/29kcfd816cd6jbsm48mqkp2r0000gp/T/questNewS_2017-10-22_14-14-29.950.xcdistributionlogs'.
2017-10-22 14:14:34.389 xcodebuild[69327:634958] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7ff668d15a50>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-22 14:14:34.510 xcodebuild[69327:634958] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7ff668d15a50>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-22 14:14:34.512 xcodebuild[69327:634958] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7ff668d15a50>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-22 14:14:34.513 xcodebuild[69327:634958] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7ff668d15a50>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-22 14:14:34.863 xcodebuild[69327:634958] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ff66e134cc0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=8 \"adb has conflicting provisioning settings.\" UserInfo={NSLocalizedDescription=adb has conflicting provisioning settings., NSLocalizedRecoverySuggestion=adb is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the \"signingCertificate\" entry from your Export Options property list, or switch to manual signing by setting \"signingStyle\" to \"Manual.}",
"Error Domain=IDEProvisioningErrorDomain Code=8 \"ios-device-lib has conflicting provisioning settings.\" UserInfo={NSLocalizedDescription=ios-device-lib has conflicting provisioning settings., NSLocalizedRecoverySuggestion=ios-device-lib is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the \"signingCertificate\" entry from your Export Options property list, or switch to manual signing by setting \"signingStyle\" to \"Manual.}"
)}
error: exportArchive: adb has conflicting provisioning settings.
Error Domain=IDEProvisioningErrorDomain Code=8 "adb has conflicting provisioning settings." UserInfo={NSLocalizedDescription=adb has conflicting provisioning settings., NSLocalizedRecoverySuggestion=adb is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the "signingCertificate" entry from your Export Options property list, or switch to manual signing by setting "signingStyle" to "Manual.}
error: exportArchive: ios-device-lib has conflicting provisioning settings.
Error Domain=IDEProvisioningErrorDomain Code=8 "ios-device-lib has conflicting provisioning settings." UserInfo={NSLocalizedDescription=ios-device-lib has conflicting provisioning settings., NSLocalizedRecoverySuggestion=ios-device-lib is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the "signingCertificate" entry from your Export Options property list, or switch to manual signing by setting "signingStyle" to "Manual.}
** EXPORT FAILED **
Please suggest what I can do to resolve this
Hi @anuragd7
In order to run or device application should be signed and this is what fails.
There are two options to configure it:
Set TEAM_ID in build.xcconfig file or pass it as argument:
tns run ios --team-id <TEAM_ID>
It can not be specified in config file and you should pass it as argument:
tns run ios --provisioning <PROVISIONING PROFILE>
You can list availalbe provisining profiles and teams on yhour machine when you leave --provisining empty, for example:
`tns build ios --release --for-device --provision
Hi @dtopuzov
Thanks for your response. I tried your suggestions and ran into the following issues.
tns run ios --team-id <TEAM_ID> I get the following errorXcode build...
2017-10-23 09:58:45.331 xcodebuild[37427:1281680] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/73/29kcfd816cd6jbsm48mqkp2r0000gp/T/questNewS_2017-10-23_09-58-45.329.xcdistributionlogs'.
2017-10-23 09:58:51.051 xcodebuild[37427:1281680] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fb954712ce0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-23 09:58:51.585 xcodebuild[37427:1281680] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fb954712ce0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-23 09:58:51.585 xcodebuild[37427:1281680] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fb954712ce0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-23 09:58:51.586 xcodebuild[37427:1281680] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fb954712ce0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-23 09:58:51.734 xcodebuild[37427:1281680] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fb959873260>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=8 \"adb has conflicting provisioning settings.\" UserInfo={NSLocalizedDescription=adb has conflicting provisioning settings., NSLocalizedRecoverySuggestion=adb is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the \"signingCertificate\" entry from your Export Options property list, or switch to manual signing by setting \"signingStyle\" to \"Manual.}",
"Error Domain=IDEProvisioningErrorDomain Code=8 \"ios-device-lib has conflicting provisioning settings.\" UserInfo={NSLocalizedDescription=ios-device-lib has conflicting provisioning settings., NSLocalizedRecoverySuggestion=ios-device-lib is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the \"signingCertificate\" entry from your Export Options property list, or switch to manual signing by setting \"signingStyle\" to \"Manual.}"
)}
error: exportArchive: adb has conflicting provisioning settings.
Error Domain=IDEProvisioningErrorDomain Code=8 "adb has conflicting provisioning settings." UserInfo={NSLocalizedDescription=adb has conflicting provisioning settings., NSLocalizedRecoverySuggestion=adb is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the "signingCertificate" entry from your Export Options property list, or switch to manual signing by setting "signingStyle" to "Manual.}
error: exportArchive: ios-device-lib has conflicting provisioning settings.
Error Domain=IDEProvisioningErrorDomain Code=8 "ios-device-lib has conflicting provisioning settings." UserInfo={NSLocalizedDescription=ios-device-lib has conflicting provisioning settings., NSLocalizedRecoverySuggestion=ios-device-lib is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the "signingCertificate" entry from your Export Options property list, or switch to manual signing by setting "signingStyle" to "Manual.}
** EXPORT FAILED **
tns run ios --provision <PROVISIONING PROFILE> I get the following errors.=== BUILD TARGET questNewS OF PROJECT questNewS WITH CONFIGURATION Debug ===
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/UIKit-2LM3EQU7VVY4O.pcm: while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
No such file or directorywarning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2BFR9L55Q8TX5/UIKit-2LM3EQU7VVY4O.pcm
: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/Dispatch-12O7S7HHQXK9N.pcm: No such file or directory
/Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2BFR9L55Q8TX5/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2BFR9L55Q8TX5/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2BFR9L55Q8TX5/Dispatch-12O7S7HHQXK9N.pcm: No such file or directory
while processing /Users/NRMac/Projects/newquest/questNewS/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2BFR9L55Q8TX5/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
Xcode build...
2017-10-23 11:26:52.437 xcodebuild[72609:1431988] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/73/29kcfd816cd6jbsm48mqkp2r0000gp/T/questNewS_2017-10-23_11-26-52.436.xcdistributionlogs'.
2017-10-23 11:26:57.759 xcodebuild[72609:1431988] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fd897c0abb0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-23 11:26:57.759 xcodebuild[72609:1431988] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fd897c0abb0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-10-23 11:26:57.761 xcodebuild[72609:1431988] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13233/DVTFoundation/DeveloperStructure/DVTPlatformFamily.m:192
Details: Error Domain=DVTMachOErrorDomain Code=1 "Reached end of file while looking for: Mach-O slice." UserInfo={NSLocalizedDescription=Reached end of file while looking for: Mach-O slice., NSLocalizedRecoverySuggestion=}
Object: <NSBundle>
Method: +dvt_platformFamilyForBundleAtPath:error:
Thread: <NSThread: 0x7fd897c0abb0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
Please tell me what I need to do differently. Thanks
I deleted all old profiles from the developer portal and recreated them. I then added them to the keychain. Now I am able to run the project from the command line.
I have the same exact error. Unfortunately deleting the certs and re-adding them did not work
Seeing the same problem here. Please reopen this issue
Explicitly naming the provisioning profile on the build does NOT solve the issue. Also deleting the provisioning profiles in Library > MobileDevice > Provisioning Profiles and all the certificates associated with the project in the keychain then re-creating them did NOT work either. After much trial and error I have found how to resolve this issue.
Try these two things:
(1)
npm uninstall ios-device-lib adb --save
tns platform remove ios
tns platform add ios
tns run ios
(2)
If one does not solve the issue then go to
node_modules > nativescript > node_modules >ios-device-lib . Delete this directory
node_modules > nativescript > lib > common > resources > platform-tools > android .
Inside this folder there should be 3 folders with each containing an adb.exe. Delete the exe in each.
tns run ios
@dtopuzov What I don't understand is why are we getting android debug bridge errors when I am trying to run my iOS project?
Hey @TimHawkHodg ,
I'm copying my answer from here for reference:
The problem is that you have
nativescriptas dependency of your project. Thenativescriptpackage is the CLI itself and it should not be included in your NativeScript application. The CLI should be installed globally (npm install -g nativescript). It looks like, you've missed the-gpart at some point and that's why you have the package included in your project.
In order to resolve the issue, just executenpm uninstall --save nativescriptin your project dir. This wayios-device-libandadbwill be removed from your project.As per your last question - whenever you try building your NativeScript application for iOS , CLI analyzes your dependencies and includes them in the native Xcode project. In your case this includes all CLI dependencies (like ios-device-lib, adb, etc.). These are binaries, and as I've explained in my previous answer, Xcode tries to codesign them.
Can you please try the suggested solution and see if it works for you?
@rosen-vladimirov this worked as well
Most helpful comment
@rosen-vladimirov this worked as well