Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
4d875278
Commit
4d875278
authored
Oct 03, 2016
by
Thomas Van Lenten
Committed by
GitHub
Oct 03, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2218 from thomasvl/xcode8_updates
Update the ObjC projects for Xcode 8
parents
350d4944
297449aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
66 additions
and
36 deletions
+66
-36
.travis.yml
.travis.yml
+1
-1
full_mac_build.sh
objectivec/DevTools/full_mac_build.sh
+25
-23
project.pbxproj
objectivec/ProtocolBuffers_OSX.xcodeproj/project.pbxproj
+15
-1
PerformanceTests.xcscheme
...codeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
+1
-1
ProtocolBuffers.xcscheme
...xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
+1
-1
project.pbxproj
objectivec/ProtocolBuffers_iOS.xcodeproj/project.pbxproj
+21
-7
PerformanceTests.xcscheme
...codeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
+1
-1
ProtocolBuffers.xcscheme
...xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
+1
-1
GPBSwiftTests.swift
objectivec/Tests/GPBSwiftTests.swift
+0
-0
No files found.
.travis.yml
View file @
4d875278
...
...
@@ -8,7 +8,7 @@ language: cpp
os
:
-
osx
# The Objective C build needs Xcode 7.0 or later.
osx_image
:
xcode
7.3
osx_image
:
xcode
8
script
:
-
./tests.sh $CONFIG
env
:
...
...
objectivec/DevTools/full_mac_build.sh
View file @
4d875278
...
...
@@ -228,34 +228,23 @@ if [[ "${DO_XCODE_IOS_TESTS}" == "yes" ]] ; then
# NOTE: Different Xcode have different simulated hardware/os support.
readonly
XCODE_VERSION_LINE
=
"
$(
xcodebuild
-version
|
grep
Xcode
\
)
"
readonly
XCODE_VERSION
=
"
${
XCODE_VERSION_LINE
/Xcode /
}
"
# drop the prefix.
IOS_SIMULATOR_NAME
=
"Simulator"
case
"
${
XCODE_VERSION
}
"
in
6.
*
)
echo
"ERROR: Xcode 6.3/6.4 no longer supported for building, please use
7
.0 or higher."
1>&2
echo
"ERROR: Xcode 6.3/6.4 no longer supported for building, please use
8
.0 or higher."
1>&2
exit
10
;;
7.1
*
)
XCODEBUILD_TEST_BASE_IOS+
=(
-destination
"platform=iOS Simulator,name=iPhone 4s,OS=8.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPhone 6,OS=9.0"
# 64bit
-destination
"platform=iOS Simulator,name=iPad 2,OS=8.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPad Air,OS=9.0"
# 64bit
)
7.
*
)
echo
"ERROR: The unittests include Swift code that is now Swift 3.0."
1>&2
echo
"ERROR: Xcode 8.0 or higher is required to build the test suite, but the library works with Xcode 7.x."
1>&2
exit
11
;;
7.2
*
)
8.0
*
)
# The 8.* device seem to hang and never start under Xcode 8.
XCODEBUILD_TEST_BASE_IOS+
=(
-destination
"platform=iOS Simulator,name=iPhone 4s,OS=8.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPhone 6,OS=9.2"
# 64bit
-destination
"platform=iOS Simulator,name=iPad 2,OS=8.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPad Air,OS=9.2"
# 64bit
)
;;
7.3
*
)
XCODEBUILD_TEST_BASE_IOS+
=(
-destination
"platform=iOS Simulator,name=iPhone 4s,OS=8.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPhone 6,OS=9.3"
# 64bit
-destination
"platform=iOS Simulator,name=iPad 2,OS=8.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPad Air,OS=9.3"
# 64bit
-destination
"platform=iOS Simulator,name=iPhone 4s,OS=9.0"
# 32bit
-destination
"platform=iOS Simulator,name=iPhone 7,OS=10.0"
# 64bit
-destination
"platform=iOS Simulator,name=iPad 2,OS=9.0"
# 32bit
-destination
"platform=iOS Simulator,name=iPad Pro (9.7 inch),OS=10.0"
# 64bit
)
;;
*
)
...
...
@@ -272,7 +261,7 @@ if [[ "${DO_XCODE_IOS_TESTS}" == "yes" ]] ; then
"
${
XCODEBUILD_TEST_BASE_IOS
[@]
}
"
-configuration
Release
test
fi
# Don't leave the simulator in the developer's face.
killall
"
${
IOS_SIMULATOR_NAME
}
"
killall
Simulator
fi
if
[[
"
${
DO_XCODE_OSX_TESTS
}
"
==
"yes"
]]
;
then
XCODEBUILD_TEST_BASE_OSX
=(
...
...
@@ -282,6 +271,19 @@ if [[ "${DO_XCODE_OSX_TESTS}" == "yes" ]] ; then
# Since the ObjC 2.0 Runtime is required, 32bit OS X isn't supported.
-destination
"platform=OS X,arch=x86_64"
# 64bit
)
readonly
XCODE_VERSION_LINE
=
"
$(
xcodebuild
-version
|
grep
Xcode
\
)
"
readonly
XCODE_VERSION
=
"
${
XCODE_VERSION_LINE
/Xcode /
}
"
# drop the prefix.
case
"
${
XCODE_VERSION
}
"
in
6.
*
)
echo
"ERROR: Xcode 6.3/6.4 no longer supported for building, please use 8.0 or higher."
1>&2
exit
10
;;
7.
*
)
echo
"ERROR: The unittests include Swift code that is now Swift 3.0."
1>&2
echo
"ERROR: Xcode 8.0 or higher is required to build the test suite, but the library works with Xcode 7.x."
1>&2
exit
11
;;
esac
if
[[
"
${
DO_XCODE_DEBUG
}
"
==
"yes"
]]
;
then
header
"Doing Xcode OS X build/tests - Debug"
"
${
XCODEBUILD_TEST_BASE_OSX
[@]
}
"
-configuration
Debug
test
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/project.pbxproj
View file @
4d875278
...
...
@@ -556,9 +556,10 @@
attributes
=
{
LastSwiftUpdateCheck
=
0710
;
LastTestingUpgradeCheck
=
0600
;
LastUpgradeCheck
=
0
71
0
;
LastUpgradeCheck
=
0
80
0
;
TargetAttributes
=
{
8BBEA4A5147C727100C4ADB7
=
{
LastSwiftMigration
=
0800
;
TestTargetID
=
8B9A5EA41831993600A9D33B
;
};
F45BBC141B0CE3C6002D064D
=
{
...
...
@@ -740,6 +741,7 @@
PRODUCT_NAME
=
UnitTests
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Tests/UnitTests-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_VERSION
=
3.0
;
WARNING_CFLAGS
=
(
"$(inherited)"
,
"-Wno-documentation-unknown-command"
,
...
...
@@ -764,6 +766,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
"com.yourcompany.${PRODUCT_NAME:identifier}"
;
PRODUCT_NAME
=
UnitTests
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Tests/UnitTests-Bridging-Header.h"
;
SWIFT_VERSION
=
3.0
;
WARNING_CFLAGS
=
(
"$(inherited)"
,
"-Wno-documentation-unknown-command"
,
...
...
@@ -785,16 +788,21 @@
CLANG_WARN_ASSIGN_ENUM
=
YES
;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS
=
YES
;
CLANG_WARN_DOCUMENTATION_COMMENTS
=
YES
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS
=
YES
;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES_AGGRESSIVE
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_TESTABILITY
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_OPTIMIZATION_LEVEL
=
0
;
GCC_PREPROCESSOR_DEFINITIONS
=
"DEBUG=1"
;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS
=
YES
;
...
...
@@ -846,16 +854,21 @@
CLANG_WARN_ASSIGN_ENUM
=
YES
;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS
=
YES
;
CLANG_WARN_DOCUMENTATION_COMMENTS
=
YES
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS
=
YES
;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES_AGGRESSIVE
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS
=
YES
;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS
=
YES
;
GCC_TREAT_WARNINGS_AS_ERRORS
=
YES
;
...
...
@@ -881,6 +894,7 @@
MACOSX_DEPLOYMENT_TARGET
=
10.9
;
RUN_CLANG_STATIC_ANALYZER
=
YES
;
SDKROOT
=
macosx
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Owholemodule"
;
WARNING_CFLAGS
=
(
"-Wdocumentation-unknown-command"
,
"-Wundef"
,
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
View file @
4d875278
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
71
0"
LastUpgradeVersion =
"0
80
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
View file @
4d875278
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
71
0"
LastUpgradeVersion =
"0
80
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/project.pbxproj
View file @
4d875278
...
...
@@ -633,9 +633,10 @@
attributes
=
{
LastSwiftUpdateCheck
=
0710
;
LastTestingUpgradeCheck
=
0600
;
LastUpgradeCheck
=
0
71
0
;
LastUpgradeCheck
=
0
80
0
;
TargetAttributes
=
{
8BBEA4A5147C727100C4ADB7
=
{
LastSwiftMigration
=
0800
;
TestTargetID
=
8B9A5EA41831993600A9D33B
;
};
F45BBC0E1B0CDB50002D064D
=
{
...
...
@@ -843,7 +844,7 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
LaunchImage
;
CLANG_ENABLE_OBJC_ARC
=
YES
;
INFOPLIST_FILE
=
"$(SRCROOT)/Tests/iOSTestHarness/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.1
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.google.${PRODUCT_NAME:rfc1034identifier}"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
...
...
@@ -858,7 +859,7 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
LaunchImage
;
CLANG_ENABLE_OBJC_ARC
=
YES
;
INFOPLIST_FILE
=
"$(SRCROOT)/Tests/iOSTestHarness/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.1
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.google.${PRODUCT_NAME:rfc1034identifier}"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
...
...
@@ -880,7 +881,7 @@
"$(SRCROOT)"
,
);
INFOPLIST_FILE
=
"Tests/UnitTests-Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.1
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
LIBRARY_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -890,6 +891,7 @@
PRODUCT_NAME
=
UnitTests
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Tests/UnitTests-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_VERSION
=
3.0
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
TEST_HOST
=
"$(BUILT_PRODUCTS_DIR)/iOSTestHarness.app/iOSTestHarness"
;
WARNING_CFLAGS
=
(
...
...
@@ -915,7 +917,7 @@
"$(SRCROOT)"
,
);
INFOPLIST_FILE
=
"Tests/UnitTests-Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.1
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
LIBRARY_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -924,6 +926,7 @@
OTHER_LDFLAGS
=
"-ObjC"
;
PRODUCT_NAME
=
UnitTests
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Tests/UnitTests-Bridging-Header.h"
;
SWIFT_VERSION
=
3.0
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
TEST_HOST
=
"$(BUILT_PRODUCTS_DIR)/iOSTestHarness.app/iOSTestHarness"
;
WARNING_CFLAGS
=
(
...
...
@@ -947,17 +950,22 @@
CLANG_WARN_ASSIGN_ENUM
=
YES
;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS
=
YES
;
CLANG_WARN_DOCUMENTATION_COMMENTS
=
YES
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS
=
YES
;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES_AGGRESSIVE
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_TESTABILITY
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_OPTIMIZATION_LEVEL
=
0
;
GCC_PREPROCESSOR_DEFINITIONS
=
"DEBUG=1"
;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS
=
YES
;
...
...
@@ -982,7 +990,7 @@
GCC_WARN_UNUSED_PARAMETER
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
GENERATE_PROFILING_CODE
=
NO
;
IPHONEOS_DEPLOYMENT_TARGET
=
6.1
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
ONLY_ACTIVE_ARCH
=
YES
;
RUN_CLANG_STATIC_ANALYZER
=
YES
;
SDKROOT
=
iphoneos
;
...
...
@@ -1009,17 +1017,22 @@
CLANG_WARN_ASSIGN_ENUM
=
YES
;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS
=
YES
;
CLANG_WARN_DOCUMENTATION_COMMENTS
=
YES
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS
=
YES
;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES_AGGRESSIVE
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS
=
YES
;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS
=
YES
;
GCC_TREAT_WARNINGS_AS_ERRORS
=
YES
;
...
...
@@ -1042,9 +1055,10 @@
GCC_WARN_UNUSED_PARAMETER
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
GENERATE_PROFILING_CODE
=
NO
;
IPHONEOS_DEPLOYMENT_TARGET
=
6.1
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
RUN_CLANG_STATIC_ANALYZER
=
YES
;
SDKROOT
=
iphoneos
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Owholemodule"
;
WARNING_CFLAGS
=
(
"-Wdocumentation-unknown-command"
,
"-Wundef"
,
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
View file @
4d875278
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
71
0"
LastUpgradeVersion =
"0
80
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
View file @
4d875278
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
71
0"
LastUpgradeVersion =
"0
80
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
objectivec/Tests/GPBSwiftTests.swift
View file @
4d875278
This diff is collapsed.
Click to expand it.
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