Closed RobertGardner closed 7 years ago
I experienced this problem today as well after upgrading. I think you can sometimes get around it by setting the 'keychain sharing' in Xcode to 'on' but I feel like you had a postinstall script in place to take care of this keychain sharing issue as of 3.8, so not sure if something has dropped off? And not quite sure if that will solve the issue long term. Funny stuff!
I am having the same issue. I double checked my xcodeproj file and I have the Keychaing Sharing set to ON
[Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
[Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
Jul 3 11:00:44 Alexs-MacBook-Pro-2 securityd[1661]: found no keychain client entitlements. task=ppgFinder[1850]/1#0 LF=0 procid=com.asouza.ppgFinder cs_flags=0x22000201
I don't think Keychain Sharing is relevant for this error. But not sure what's causing it. In the meanwhile try using a real device to test on.
It is working in the real device. The main issue is I can't use the emulator anymore so, I cannot generate the screenshots required to submit the app to the AppStore :(
@dmac123 you can always take screenshots on your real device (although scaling for things like iPad is a pain)... :(
That's the big deal Jen. The iPad screenshots...
I dug a bit on SO: https://github.com/benbahrenburg/Securely/issues/48
I created the entitlements file and I think the error has gone away. Do you want to try that for your app?
I tried this and it didn't work.
To be clear, I created the file Entitlements.plist
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.keystore.access-keychain-keys</key>
<true/>
<key>com.apple.keystore.device</key>
<true/>
</dict>
</plist>
and placed it in app/App_Resources/iOS
. To be through I ran tns platform clean ios
and then tns run ios
. I still get the exact same sequence of errors.
Did it work with the nativescript 3.0.x CLI? I suspect 3.1.0 broke this.
I've been using nativescript-plugin-firebase with the NativeScript 3.0 CLI for a long time and it has worked great, without needing Entitlement.plist or anything other than the setup described in the README. This only started happening once I upgraded to 3.1 CLI.
Yep, thank you for confirming that. 3.1.0 changed a lot of bits regarding entitlements. Will try to investigate tomorrow.
@EddyVerbruggen : Any updates on this?
No not yet. Do you have any idea?
@EddyVerbruggen I have to dig a bit deeper, the only things I could confirm were
@RobertGardner : Using the entitlements file solves it. You might need to use an additional dev plugin https://github.com/Essent/nativescript-custom-entitlements (More details here https://github.com/NativeScript/nativescript-cli/issues/2075)
Thanks @asaph26, I confirm that it did the trick for now
Heres what I just tried:
I upgraded to 3.1.0 and did tns update
to upgrade my core modules and runtimes.
Then I started getting this keychain error.
I tried adding Entitlements.plist to App_Resources/iOS
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.keystore.access-keychain-keys</key>
<true/>
<key>com.apple.keystore.device</key>
<true/>
</dict>
</plist>
That didn't help. I also turned on Keychain Sharing in my xcodeproj file. That also didn't change anything. The errors I'm getting are:
[Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
[Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
Jul 12 09:50:25 Daves-Presonus-Macbook securityd[1009]: found no keychain client entitlements. task=nannyshifts[14738]/1#0 LF=0 procid=org.nativescript.nannyshifts cs_flags=0x22000201
[Firebase/InstanceID][I-IID010003] Unable to generate keypair.
[Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)"
CONSOLE LOG file:///app/views/login/login-model.js:61:20: login // HERES WHERE I CLICK LOGIN WHICH CALLS firebase.login()
Jul 12 09:50:29 Daves-Presonus-Macbook securityd[1009]: found no keychain client entitlements. task=nannyshifts[14738]/1#0 LF=0 procid=org.nativescript.nannyshifts cs_flags=0x22000201
CONSOLE LOG file:///app/views/login/login-model.js:93:28: An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered
I tried:
Heres my tns info
before I attempted to upgrade to Nativescript 3 (something I try every couple weeks and always regret)
And here it is now, with the firebase plugin working again:
Ignore android runtime version, I havent tested with android yet.
One last note: maybe the fact that the CLI is launching the app has something to do with it (https://stackoverflow.com/questions/43539616/ios-firebase-error-unable-to-generate-keypair), because its noted in this thread that launching it from xcode works.
Thanks @davecoffin. It's an issue with {N} CLI 3.1.x that wasn't in 3.0.x. I'll try and find a solution..
The entitlements file fixed it for me.
Details: Installed the nativescript-custom-entitlements
plugin and added the file app/App_Resources/iOS/app.entitlements
with the contents listed above.
Thanks everyone! Hopefully Eddy can find a solution that doesn't require the plugin and entitlements file, but I'm quite happy to be able to develop against Firebase again!
Found a bit of WiFi near my tent π !
Looks like this can easily be fixed by adding the entitlements file @davecoffin suggested to the plugin's platforms/ios/
folder. It will be copied and merged automatically.
Expect a new version today.
Available in 4.0.4.
Thanks @EddyVerbruggen you're the best, enjoy camping!
Hi Eddy, I've just update the plugin for iOS dev, to the new 4.0.4 version, but when I build the app, it load the old 4.0.3 version!! As you can see on the attached image
That version is the firbase sdk version, not the plugin version. Check node_modules/nativescript-plugin-firebase/package.json for the actual plugin version used.
I'm reverting this in 4.0.5 as it seems to harm folks when trying to deploy to their phones. Instead I've added the workaround to the main readme. Still, testing on a real device remains the best way to test firebase stuff. Unfortunately.
Hi, I've tried today to update tns at new version nativescript@3.2.0,
I've update my test app, that use firebase for database and login but I obtain an error
found no keychain client entitlements.
Below the console output of my app after the "tns run ios" command
I've to downgrade to nativescript@3.0.1 to run correctly also with plugin-firebase@4.1.1
iMacGiorgio:nxdash2 nemesix$ rm -rf platforms/ios
iMacGiorgio:nxdash2 nemesix$ tns run ios --clean
Searching for devices...
Copying template files...
Installing tns-ios
/Users/nemesix/Sviluppo/NativeScript3/nxdash2
βββ tns-ios@3.2.0
Project successfully created.
Executing before-prepare hook from /Users/nemesix/Sviluppo/NativeScript3/nxdash2/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.2.2
Executing before-prepare hook from /Users/nemesix/Sviluppo/NativeScript3/nxdash2/hooks/before-prepare/nativescript-plugin-firebase.js
Preparing project...
Successfully prepared plugin nativescript-angular for ios.
Successfully prepared plugin nativescript-intl for ios.
Successfully prepared plugin nativescript-loading-indicator for ios.
Successfully prepared plugin nativescript-ngx-fonticon for ios.
Successfully prepared plugin nativescript-plugin-firebase for ios.
Successfully prepared plugin nativescript-telerik-ui-pro for ios.
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.
Installing pods...
Analyzing dependencies
Downloading dependencies
Installing Firebase (4.1.1)
Installing FirebaseAnalytics (4.0.3)
Installing FirebaseAuth (4.1.1)
Installing FirebaseCore (4.0.6)
Installing FirebaseDatabase (4.0.2)
Installing FirebaseInstanceID (2.0.2)
Installing GTMSessionFetcher (1.1.11)
Installing GoogleToolboxForMac (2.1.1)
Installing MBProgressHUD (1.0.0)
Installing leveldb-library (1.18.3)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `nxdash2.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 11 total pods installed.
[WARNING]: [!] Automatically assigning platform ios with version 8.0 on target nxdash2 because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/nemesix/Sviluppo/NativeScript3/nxdash2/hooks/after-prepare/firebase-build-gradle.js
Configure firebase
Executing after-prepare hook from /Users/nemesix/Sviluppo/NativeScript3/nxdash2/hooks/after-prepare/firebase-copy-google-services.js
Copy /Users/nemesix/Sviluppo/NativeScript3/nxdash2/app/App_Resources/Android/google-services.json to /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/android/google-services.json.
Executing after-prepare hook from /Users/nemesix/Sviluppo/NativeScript3/nxdash2/hooks/after-prepare/nativescript-plugin-firebase.js
Building project...
Xcode build...
=== BUILD TARGET nxdash2 OF PROJECT nxdash2 WITH CONFIGURATION Debug ===
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/MBProgressHUD'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/leveldb-library'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/nanopb'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/MBProgressHUD'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/leveldb-library'
ld: warning: directory not found for option '-F/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Products/Debug-iphonesimulator/nanopb'
=== BUILD TARGET nxdash2 OF PROJECT nxdash2 WITH CONFIGURATION Debug ===
/* com.apple.actool.document.warnings */
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset: warning: A 60x60@2x app icon is required for iPhone apps targeting iOS 7.0 and later
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset: warning: A 76x76 app icon is required for iPad apps targeting iOS 7, 8, and 9
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset: warning: A 76x76@2x app icon is required for iPad apps targeting iOS 7.0 and later
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/(null)[2d][Default-Landscape-736h@3x.png]: warning: The launch image set "LaunchImage" has 2 unassigned children.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][landscape][full-screen][8.0]: warning: LaunchImage.launchimage/Default-Landscape@3x.png is 2732x2048 but should be 2208x1242.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/(null)[2d][Icon-60@2x.png]: warning: The app icon set "AppIcon" has 8 unassigned children.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][20x20][][][1x]: warning: AppIcon.appiconset/icon-Small-20@1x.png is 21x21 but should be 20x20.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][29x29][][][3x]: warning: The file "icon-Small@3x.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][29x29][][][1x]: warning: AppIcon.appiconset/icon-Small@1x.png is 30x30 but should be 29x29.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][2x]: warning: AppIcon.appiconset/Icon@2x.png is 120x121 but should be 114x114.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][1x]: warning: AppIcon.appiconset/icon-60@1x.png is 60x61 but should be 57x57.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][29x29][][][2x]: warning: The file "icon.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x]: warning: AppIcon.appiconset/icon-76@1x.png is 78x77 but should be 76x76.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][20x20][][][2x]: warning: AppIcon.appiconset/icon-Small-20.png is 21x21 but should be 40x40.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][29x29][][][2x]: warning: AppIcon.appiconset/icon-Small@2x-1.png is 59x59 but should be 58x58.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][40x40][][][2x]: warning: AppIcon.appiconset/icon-Small-40@2x-1.png is 80x81 but should be 80x80.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][40x40][][][2x]: warning: The file "icon-Small-40.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][60x60][][][3x]: warning: The file "icon-60@3x.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][60x60][][][2x]: warning: The file "icon-60@2x.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][20x20][][][3x]: warning: AppIcon.appiconset/icon-Small-20@3x.png is 62x62 but should be 60x60.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][2x]: warning: The file "icon-76@2x.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][iphone][40x40][][][3x]: warning: The file "icon-Small-40@3x.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][29x29][][][1x]: warning: The file "icon-Small.png" for the image set "AppIcon" does not exist.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][20x20][][][2x]: warning: AppIcon.appiconset/icon-Small-20@2x.png is 41x40 but should be 40x40.
/* com.apple.actool.document.notices */
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][1x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][2x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][1x]: notice: 72x72 app icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][2x]: notice: 72x72@2x app icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][retina4][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][1x][landscape][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[ipad][][2x][landscape][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/nxdash2/Resources/Assets.xcassets:./LaunchImage.launchimage/[iphone][667h][2x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/* com.apple.actool.compilation-results */
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/AppIcon40x40~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/AppIcon50x50~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/AppIcon50x50@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/AppIcon72x72~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/AppIcon72x72@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/AppIcon83.5x83.5@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage@2x.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-568h@2x.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-Portrait~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-Landscape~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-Portrait@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-Landscape@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-800-Portrait-736h@3x.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-800-667h@2x.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-700@2x.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-700-568h@2x.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-700-Portrait~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-700-Landscape~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-700-Portrait@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/LaunchImage-700-Landscape@2x~ipad.png
/Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/build/emulator/nxdash2.app/Assets.car
/Users/nemesix/Library/Developer/Xcode/DerivedData/nxdash2-acfietgfqwsncadbxgmmvcckdvqs/Build/Intermediates/nxdash2.build/Debug-iphonesimulator/nxdash2.build/assetcatalog_generated_info.plist
=== BUILD TARGET nxdash2 OF PROJECT nxdash2 WITH CONFIGURATION Debug ===
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/UIKit-1V5UHAPTOD24G.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/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/UIKit-1V5UHAPTOD24G.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/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
while processing /Users/nemesix/Sviluppo/NativeScript3/nxdash2/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
Project successfully built.
Installing...
Successfully installed on device with identifier '3E87E0E2-A164-4CF2-BE3C-D734C18F5E32'.
Successfully transferred all files.
Refreshing application...
Successfully synced application org.nativescript.nxdash2 on device 3E87E0E2-A164-4CF2-BE3C-D734C18F5E32.
Executing before-watch hook from /Users/nemesix/Sviluppo/NativeScript3/nxdash2/hooks/before-watch/nativescript-dev-typescript.js
Found peer TypeScript 2.2.2
objc[4306]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x118e8b998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x118cad880). One of the two will be used. Which one is undefined.
Sep 11 11:14:36 iMacGiorgio securityd[2232]: found no keychain client entitlements. task=nxdash2[4306]/1#0 LF=0 procid=org.nativescript.nxdash2 cs_flags=0x02000201
Sep 11 11:14:36 --- last message repeated 1 time ---
[Firebase/InstanceID][I-IID017000] Could not determine the app's default Keychain access group (-34018)
Sep 11 11:14:36 iMacGiorgio securityd[2232]: found no keychain client entitlements. task=nxdash2[4306]/1#0 LF=0 procid=org.nativescript.nxdash2 cs_flags=0x02000201
[Firebase/InstanceID][I-IID008005] Failed to remove checkin auth credentials from Keychain Error Domain=com.google.iid Code=-34018 "(null)"
[Firebase/InstanceID][I-IID013003] Couldn't remove cached checkin preferences. Error: Error Domain=com.google.iid Code=-34018 "(null)"
Sep 11 11:14:36 iMacGiorgio securityd[2232]: found no keychain client entitlements. task=nxdash2[4306]/1#0 LF=0 procid=org.nativescript.nxdash2 cs_flags=0x02000201
[Firebase/Analytics][I-ACS023007] Firebase Analytics v.40003000 started
[Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
Sep 11 11:14:36 iMacGiorgio securityd[2232]: found no keychain client entitlements. task=nxdash2[4306]/1#0 LF=0 procid=org.nativescript.nxdash2 cs_flags=0x02000201
[] nw_host_stats_add_src recv too small, received 24, expected 28
Sep 11 11:14:36 --- last message repeated 2 times ---
[Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
[] nw_host_stats_add_src recv too small, received 24, expected 28
[Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
[] nw_host_stats_add_src recv too small, received 24, expected 28
Sep 11 11:14:36 --- last message repeated 5 times ---
[] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed
[] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
[] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[x86_64] libnetcore-856.30.16
0 libsystem_network.dylib 0x000000010712f666 __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x00000001074d1006 nw_socket_add_input_handler + 3164
2 libnetwork.dylib 0x00000001074ae555 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x00000001074ad572 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x00000001074ac298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x00000001074c7ae1 nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x00000001074c7510 nw_endpoint_handler_start + 570
7 libnetwork.dylib 0x00000001074df1f9 nw_endpoint_resolver_start_next_child + 2240
[] nw_host_stats_add_src recv too small, received 24, expected 28
[] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
[] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[x86_64] libnetcore-856.30.16
0 libsystem_network.dylib 0x000000010712f666 __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x00000001074d1006 nw_socket_add_input_handler + 3164
2 libnetwork.dylib 0x00000001074ae555 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x00000001074ad572 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x00000001074ac298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x00000001074c7ae1 nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x00000001074c7510 nw_endpoint_handler_start + 570
7 libnetwork.dylib 0x00000001074df1f9 nw_endpoint_resolver_start_next_child + 2240
CONSOLE LOG file:///app/main.js:13:16: Firebase init done!
Sep 11 11:14:37 iMacGiorgio securityd[2232]: found no keychain client entitlements. task=nxdash2[4306]/1#0 LF=0 procid=org.nativescript.nxdash2 cs_flags=0x02000201
Sep 11 11:14:37 --- last message repeated 1 time ---
[Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
[Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
CONSOLE LOG file:///app/app.component.js:14:20: LANGUAGE en
CONSOLE LOG file:///app/tns_modules/@angular/core/./bundles/core.umd.js:3053:20: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
@gbonline I fixed this by adding an entitlements file to App_Resources/iOS. This will make it work on the emulator, but when you build on a device you need to remove the entitlements file. PITA, but thats the way I have to do it. Create a file called yourappname.entitlements, the contents should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.keystore.access-keychain-keys</key>
<true/>
<key>com.apple.keystore.device</key>
<true/>
</dict>
</plist>
@davecoffin I had the same issue that you encountered where simulator builds need the entitlements file you mention but then device builds result in entitlement errors unless those entitlements are removed. I have found that when I use the following *.entitlements file, it works for both device and simulator builds:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.Company.Product</string>
</array>
</dict>
</plist>
Note - replace "com.Company.Product" with your bundle identifier.
This is the entitlements entry that Xcode puts in when you enable "Keychain Sharing" in the project's capabilities. Additional details can be found in the Apple documentation Keychain Services Programming Guide - Access Groups which state that:
Xcode automatically adds the application-identifier entitlement to every app during code signing. This string is formed as the team identifier plus the bundle identifier.
Device builds work without specifying the entitlement because they are always signed and given the above entitlement. Unsigned simulator builds need to be explicitly given this entitlement.
I'm posting a new bug since this is happening after the "automate keychain sharing" changes earlier this year (#216).
I upgraded to the latest NS (3.1), firebase, firebase-plugin (4.0.3), pod, etc., and now I'm getting the error "found no keychain client entitlements". Everything goes crazy after that.
To see if it had something to do with the latest NS, I cloned your demo app and ran it. It works. Then I ran
tns update
to update to NS 3.1. It still works. So, there must be something strange I've done (that may be unrelated to the upgrade).To check that it's not something weird left-over during the upgrade, I completely deleted my app and re-cloned it. Still get the same error.
Just before this started happening, I opened my platform/ios/XX.xcodeproj file in XCode (latest version, 8.3.3) and played around with it, looking at how to upload it for testing. It's possible I did something there, but since it still happens when I
tns platform clean ios
andtns run ios
it's hard for me to see what it was. I am not yet an Apple Developer (waiting for some info before I join), so maybe I inadvertently changed something, but the simulator runs my app just fine -- until I try to do anything with firebase.I'm not sure where to look or what to try. Completely uninstall and reinstall XCode?