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
b5e5ed14
Commit
b5e5ed14
authored
Nov 25, 2014
by
Florent Vilmart
Committed by
Marius Rackwitz
Dec 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the framework copy and codesigining issues
Fix indentation
parent
f7ee16b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
embed_frameworks_script.rb
lib/cocoapods/generator/embed_frameworks_script.rb
+19
-4
No files found.
lib/cocoapods/generator/embed_frameworks_script.rb
View file @
b5e5ed14
...
@@ -46,14 +46,29 @@ module Pod
...
@@ -46,14 +46,29 @@ module Pod
script
=
<<-
eos
.
strip_heredoc
script
=
<<-
eos
.
strip_heredoc
#!/bin/sh
#!/bin/sh
set -e
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
install_framework()
install_framework()
{
{
echo "rsync --exclude '*.h' -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
source="${BUILT_PRODUCTS_DIR}/
#{
target_definition
.
label
}
/$1"
rsync -av "${BUILT_PRODUCTS_DIR}/
#{
target_definition
.
label
}
/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
if [ -L ${source} ];then
echo "Symlinked..."
source=$(readlink ${source})
fi
destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "rsync -av ${source} ${destination}"
rsync -av "${source}" "${destination}"
# Resign the code if required by the build settings to avoid unstable apps
if [ "${CODE_SIGNING_REQUIRED}" == "YES" ];then
code_sign $1
fi
}
code_sign() {
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
echo "codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/$1"
/usr/bin/codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" --preserve-metadata=identifier,entitlements "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/$1"
}
}
eos
eos
script
+=
"
\n
"
unless
frameworks_by_config
.
values
.
all?
(
&
:empty?
)
script
+=
"
\n
"
unless
frameworks_by_config
.
values
.
all?
(
&
:empty?
)
...
...
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