Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
4b4d5a49
Commit
4b4d5a49
authored
Jun 26, 2015
by
Boris Bügling
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3743 from CocoaPods/fix-codesigning
Always codesign if target is codesigned, not just if required.
parents
2bdaa27c
43bcfe54
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
CHANGELOG.md
CHANGELOG.md
+4
-0
embed_frameworks_script.rb
lib/cocoapods/generator/embed_frameworks_script.rb
+6
-7
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
No files found.
CHANGELOG.md
View file @
4b4d5a49
...
@@ -135,6 +135,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -135,6 +135,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Tim Rosenblatt](https://github.com/timrosenblatt)
[Tim Rosenblatt](https://github.com/timrosenblatt)
[#3675](https://github.com/CocoaPods/CocoaPods/pull/3675)
[#3675](https://github.com/CocoaPods/CocoaPods/pull/3675)
* Pods frameworks in codesigned Mac apps are now signed.
[Nikolaj Schumacher](https://github.com/nschum)
[#3646](https://github.com/CocoaPods/CocoaPods/issues/3646)
## 0.37.2
## 0.37.2
...
...
lib/cocoapods/generator/embed_frameworks_script.rb
View file @
4b4d5a49
...
@@ -61,10 +61,9 @@ module Pod
...
@@ -61,10 +61,9 @@ module Pod
# use filter instead of exclude so missing patterns dont' throw errors
# use filter instead of exclude so missing patterns dont' throw errors
echo "rsync -av --filter
\"
- CVS/
\"
--filter
\"
- .svn/
\"
--filter
\"
- .git/
\"
--filter
\"
- .hg/
\"
--filter
\"
- Headers
\"
--filter
\"
- PrivateHeaders
\"
--filter
\"
- Modules
\"
${source} ${destination}"
echo "rsync -av --filter
\"
- CVS/
\"
--filter
\"
- .svn/
\"
--filter
\"
- .git/
\"
--filter
\"
- .hg/
\"
--filter
\"
- Headers
\"
--filter
\"
- PrivateHeaders
\"
--filter
\"
- Modules
\"
${source} ${destination}"
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
# Resign the code if required by the build settings to avoid unstable apps
# Resign the code if required by the build settings to avoid unstable apps
if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then
code_sign_if_enabled "${destination}/$(basename "$1")"
code_sign "${destination}/$1"
fi
# Embed linked Swift runtime libraries
# Embed linked Swift runtime libraries
local basename
local basename
...
@@ -74,18 +73,18 @@ module Pod
...
@@ -74,18 +73,18 @@ module Pod
for lib in $swift_runtime_libs; do
for lib in $swift_runtime_libs; do
echo "rsync -auv
\\
"${SWIFT_STDLIB_PATH}/${lib}
\\
"
\\
"${destination}
\\
""
echo "rsync -auv
\\
"${SWIFT_STDLIB_PATH}/${lib}
\\
"
\\
"${destination}
\\
""
rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then
code_sign_if_enabled "${destination}/${lib}"
code_sign "${destination}/${lib}"
fi
done
done
}
}
# Signs a framework with the provided identity
# Signs a framework with the provided identity
code_sign() {
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
fi
}
}
eos
eos
...
...
cocoapods-integration-specs
@
f013e998
Subproject commit
e2492301c53cf7ad83e89dbebdd772254dd0fe1
5
Subproject commit
f013e9980d68be95303fdf4f629deae3a0f013c
5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment