Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit f5319b8

Browse files
EddyVerbruggeneddyverbruggen
authored andcommitted
New error after fresh install; Stop at ProcessProductPackaging #333
1 parent b6da18e commit f5319b8

File tree

4 files changed

+34
-12
lines changed

4 files changed

+34
-12
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
<img src="docs/images/firebase-logo.png" width="116px" height="32px" alt="Firebase"/>
22

33

4+
## 3.11.2 (2017, March 27)
5+
6+
[Full changelog](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/compare/3.11.1...3.11.2)
7+
8+
### SDK versions
9+
10+
- iOS: 3.13.x
11+
- Android: 10.2.x
12+
13+
### Fixes
14+
- [#333](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/333) New error after fresh install; Stop at ProcessProductPackaging
15+
16+
17+
18+
419
## 3.11.1 (2017, March 23)
520

621
[Full changelog](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/compare/3.11.0...3.11.1)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "3.11.1",
3+
"version": "3.11.2",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

scripts/entitlements-after-prepare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function (logger, platformsData, projectData, hookArgs) {
99
project = path.join(projectRoot, projectData.projectName);
1010

1111
return new Promise(function (resolve, reject) {
12-
if (platform == 'ios') {
12+
if (platform === 'ios') {
1313
fs.exists(entitlementsFile, function (exists) {
1414
if (!exists) {
1515
// no need to make noise, this is a totally valid case

scripts/entitlements-before-prepare.js

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@ var path = require('path');
44
module.exports = function (logger, platformsData, projectData, hookArgs) {
55
var platform = hookArgs.platform.toLowerCase(),
66
appResourcesDirectoryPath = projectData.appResourcesDirectoryPath,
7+
entitlementsFile = path.join(appResourcesDirectoryPath, "iOS", projectData.projectName + ".entitlements"),
78
platformResourcesDirectory = path.join(appResourcesDirectoryPath, 'iOS');
89

910
return new Promise(function (resolve, reject) {
10-
if (platform == 'ios') {
11-
var target = path.join(platformResourcesDirectory, 'build.xcconfig');
12-
13-
try {
14-
var buildData = fs.readFileSync(target).toString();
15-
if(!buildData.toString().match(/^\s*CODE_SIGN_ENTITLEMENTS/mg)){
16-
fs.appendFileSync(target, '\nCODE_SIGN_ENTITLEMENTS = ' + path.join(projectData.projectName, projectData.projectName + '.entitlements'));
11+
if (platform === 'ios') {
12+
fs.exists(entitlementsFile, function (exists) {
13+
if (!exists) {
14+
// no need to make noise, this is a totally valid case
15+
resolve();
16+
} else {
17+
var target = path.join(platformResourcesDirectory, 'build.xcconfig');
18+
try {
19+
var buildData = fs.readFileSync(target).toString();
20+
if(!buildData.toString().match(/^\s*CODE_SIGN_ENTITLEMENTS/mg)){
21+
fs.appendFileSync(target, '\nCODE_SIGN_ENTITLEMENTS = ' + path.join(projectData.projectName, projectData.projectName + '.entitlements'));
22+
}
23+
} catch (error) {
24+
reject();
25+
}
1726
}
18-
} catch (error) {
19-
reject();
20-
}
27+
});
2128
}
2229

2330
resolve();

0 commit comments

Comments
 (0)