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
99a6a95c
Commit
99a6a95c
authored
Dec 11, 2015
by
Thomas Van Lenten
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1041 from thomasvl/use_xc7
Update the min toolchain for iOS/OS X to be Xcode 7
parents
2f2da070
938ba410
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
80 additions
and
44 deletions
+80
-44
.travis.yml
.travis.yml
+0
-4
full_mac_build.sh
objectivec/DevTools/full_mac_build.sh
+2
-7
GPBDictionary.m
objectivec/GPBDictionary.m
+25
-0
project.pbxproj
objectivec/ProtocolBuffers_OSX.xcodeproj/project.pbxproj
+5
-1
PerformanceTests.xcscheme
...codeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
+8
-5
ProtocolBuffers.xcscheme
...xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
+8
-5
project.pbxproj
objectivec/ProtocolBuffers_iOS.xcodeproj/project.pbxproj
+5
-1
PerformanceTests.xcscheme
...codeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
+8
-5
ProtocolBuffers.xcscheme
...xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
+8
-5
README.md
objectivec/README.md
+1
-1
GPBSwiftTests.swift
objectivec/Tests/GPBSwiftTests.swift
+8
-8
UnitTests-Info.plist
objectivec/Tests/UnitTests-Info.plist
+1
-1
Info.plist
objectivec/Tests/iOSTestHarness/Info.plist
+1
-1
No files found.
.travis.yml
View file @
99a6a95c
...
...
@@ -66,9 +66,5 @@ matrix:
env
:
CONFIG=ruby22
-
os
:
osx
env
:
CONFIG=jruby
# Travis seems be flaky in letting the iOS simulator launch, so keep that
# flake from failing builds by marking that build as an allowed failure.
-
os
:
osx
env
:
CONFIG=objectivec_ios
notifications
:
email
:
false
objectivec/DevTools/full_mac_build.sh
View file @
99a6a95c
...
...
@@ -231,13 +231,8 @@ if [[ "${DO_XCODE_IOS_TESTS}" == "yes" ]] ; then
IOS_SIMULATOR_NAME
=
"Simulator"
case
"
${
XCODE_VERSION
}
"
in
6.
*
)
XCODEBUILD_TEST_BASE_IOS+
=(
-destination
"platform=iOS Simulator,name=iPhone 4s,OS=7.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPhone 6,OS=8.4"
# 64bit
-destination
"platform=iOS Simulator,name=iPad 2,OS=7.1"
# 32bit
-destination
"platform=iOS Simulator,name=iPad Air,OS=8.4"
# 64bit
)
IOS_SIMULATOR_NAME
=
"iOS Simulator"
echo
"ERROR: Xcode 6.3/6.4 no longer supported for building, please use 7.0 or higher."
1>&2
exit
10
;;
7.
*
)
XCODEBUILD_TEST_BASE_IOS+
=(
...
...
objectivec/GPBDictionary.m
View file @
99a6a95c
...
...
@@ -45,6 +45,18 @@
// directly.
// ------------------------------------------------------------------
// Used to include code only visible to specific versions of the static
// analyzer. Useful for wrapping code that only exists to silence the analyzer.
// Determine the values you want to use for BEGIN_APPLE_BUILD_VERSION,
// END_APPLE_BUILD_VERSION using:
// xcrun clang -dM -E -x c /dev/null | grep __apple_build_version__
// Example usage:
// #if GPB_STATIC_ANALYZER_ONLY(5621, 5623) ... #endif
#define GPB_STATIC_ANALYZER_ONLY(BEGIN_APPLE_BUILD_VERSION, END_APPLE_BUILD_VERSION) \
(defined(__clang_analyzer__) && \
(__apple_build_version__ >= BEGIN_APPLE_BUILD_VERSION && \
__apple_build_version__ <= END_APPLE_BUILD_VERSION))
enum
{
kMapKeyFieldNumber
=
1
,
kMapValueFieldNumber
=
2
,
...
...
@@ -496,6 +508,19 @@ void GPBDictionaryReadEntry(id mapDictionary,
}
if
((
keyDataType
==
GPBDataTypeString
)
&&
GPBDataTypeIsObject
(
valueDataType
))
{
#if GPB_STATIC_ANALYZER_ONLY(6020053, 7000181)
// Limited to Xcode 6.4 - 7.2, are known to fail here. The upper end can
// be raised as needed for new Xcodes.
//
// This is only needed on a "shallow" analyze; on a "deep" analyze, the
// existing code path gets this correct. In shallow, the analyzer decides
// GPBDataTypeIsObject(valueDataType) is both false and true on a single
// path through this function, allowing nil to be used for the
// setObject:forKey:.
if
(
value
.
valueString
==
nil
)
{
value
.
valueString
=
[
@""
retain
];
}
#endif
// mapDictionary is an NSMutableDictionary
[(
NSMutableDictionary
*
)
mapDictionary
setObject
:
value
.
valueString
forKey
:
key
.
valueString
];
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/project.pbxproj
View file @
99a6a95c
...
...
@@ -567,8 +567,9 @@
29B97313FDCFA39411CA2CEA
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastSwiftUpdateCheck
=
0710
;
LastTestingUpgradeCheck
=
0600
;
LastUpgradeCheck
=
0
63
0
;
LastUpgradeCheck
=
0
71
0
;
TargetAttributes
=
{
8BBEA4A5147C727100C4ADB7
=
{
TestTargetID
=
8B9A5EA41831993600A9D33B
;
...
...
@@ -756,6 +757,7 @@
);
INFOPLIST_FILE
=
"Tests/UnitTests-Info.plist"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.yourcompany.${PRODUCT_NAME:identifier}"
;
PRODUCT_NAME
=
UnitTests
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Tests/UnitTests-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
...
...
@@ -773,6 +775,7 @@
);
INFOPLIST_FILE
=
"Tests/UnitTests-Info.plist"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.yourcompany.${PRODUCT_NAME:identifier}"
;
PRODUCT_NAME
=
UnitTests
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Tests/UnitTests-Bridging-Header.h"
;
};
...
...
@@ -792,6 +795,7 @@
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS
=
YES
;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
ENABLE_TESTABILITY
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_OPTIMIZATION_LEVEL
=
0
;
GCC_PREPROCESSOR_DEFINITIONS
=
"DEBUG=1"
;
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
View file @
99a6a95c
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
63
0"
LastUpgradeVersion =
"0
71
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -23,10 +23,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Release"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Release"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
...
...
@@ -284,15 +284,18 @@
</SkippedTests>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Release"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
@@ -307,10 +310,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
View file @
99a6a95c
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
63
0"
LastUpgradeVersion =
"0
71
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -51,10 +51,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Debug"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
...
...
@@ -81,15 +81,18 @@
ReferencedContainer =
"container:ProtocolBuffers_OSX.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Debug"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
@@ -104,10 +107,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/project.pbxproj
View file @
99a6a95c
...
...
@@ -644,8 +644,9 @@
29B97313FDCFA39411CA2CEA
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastSwiftUpdateCheck
=
0710
;
LastTestingUpgradeCheck
=
0600
;
LastUpgradeCheck
=
0
63
0
;
LastUpgradeCheck
=
0
71
0
;
TargetAttributes
=
{
8BBEA4A5147C727100C4ADB7
=
{
TestTargetID
=
8B9A5EA41831993600A9D33B
;
...
...
@@ -865,6 +866,7 @@
CLANG_ENABLE_OBJC_ARC
=
YES
;
INFOPLIST_FILE
=
"$(SRCROOT)/Tests/iOSTestHarness/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.1
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.google.${PRODUCT_NAME:rfc1034identifier}"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
WRAPPER_EXTENSION
=
app
;
...
...
@@ -879,6 +881,7 @@
CLANG_ENABLE_OBJC_ARC
=
YES
;
INFOPLIST_FILE
=
"$(SRCROOT)/Tests/iOSTestHarness/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.1
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.google.${PRODUCT_NAME:rfc1034identifier}"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
WRAPPER_EXTENSION
=
app
;
...
...
@@ -955,6 +958,7 @@
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
ENABLE_TESTABILITY
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_OPTIMIZATION_LEVEL
=
0
;
GCC_PREPROCESSOR_DEFINITIONS
=
"DEBUG=1"
;
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/xcshareddata/xcschemes/PerformanceTests.xcscheme
View file @
99a6a95c
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
63
0"
LastUpgradeVersion =
"0
71
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -23,10 +23,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Release"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Release"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
...
...
@@ -293,15 +293,18 @@
ReferencedContainer =
"container:ProtocolBuffers_iOS.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Release"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<BuildableProductRunnable
runnableDebuggingMode =
"0"
>
...
...
@@ -317,10 +320,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
View file @
99a6a95c
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
63
0"
LastUpgradeVersion =
"0
71
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -51,10 +51,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Debug"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
...
...
@@ -81,15 +81,18 @@
ReferencedContainer =
"container:ProtocolBuffers_iOS.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Debug"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<BuildableProductRunnable
runnableDebuggingMode =
"0"
>
...
...
@@ -105,10 +108,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
objectivec/README.md
View file @
99a6a95c
...
...
@@ -13,7 +13,7 @@ Requirements
The Objective C implemention requires:
-
Objective C 2.0 Runtime (32bit & 64bit iOS, 64bit OS X).
-
Xcode
6.3
(or later).
-
Xcode
7.0
(or later).
-
The library code does
*not*
use ARC (for performance reasons), but it all can
be called from ARC code.
...
...
objectivec/Tests/GPBSwiftTests.swift
View file @
99a6a95c
...
...
@@ -83,8 +83,8 @@ class GPBBridgeTests: XCTestCase {
XCTAssertEqual
(
msg
.
repeatedInt32Array
.
valueAtIndex
(
0
),
Int32
(
300
))
XCTAssertEqual
(
msg
.
repeatedInt32Array
.
valueAtIndex
(
1
),
Int32
(
301
))
XCTAssertEqual
(
msg
.
repeatedStringArray
.
count
,
Int
(
2
))
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
0
)
as
!
String
,
"mno"
)
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
1
)
as
!
String
,
"pqr"
)
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
0
)
as
?
String
,
"mno"
)
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
1
)
as
?
String
,
"pqr"
)
XCTAssertEqual
(
msg
.
repeatedEnumArray
.
count
,
UInt
(
2
))
XCTAssertEqual
(
msg
.
repeatedEnumArray
.
valueAtIndex
(
0
),
Message2_Enum
.
Bar
.
rawValue
)
XCTAssertEqual
(
msg
.
repeatedEnumArray
.
valueAtIndex
(
1
),
Message2_Enum
.
Baz
.
rawValue
)
...
...
@@ -96,8 +96,8 @@ class GPBBridgeTests: XCTestCase {
XCTAssertTrue
(
msg
.
mapInt32Int32
.
valueForKey
(
501
,
value
:
&
intValue
))
XCTAssertEqual
(
intValue
,
Int32
(
401
))
XCTAssertEqual
(
msg
.
mapStringString
.
count
,
Int
(
2
))
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"bar"
)
as
!
String
,
"foo"
)
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"xyz"
)
as
!
String
,
"abc"
)
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"bar"
)
as
?
String
,
"foo"
)
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"xyz"
)
as
?
String
,
"abc"
)
XCTAssertEqual
(
msg
.
mapInt32Enum
.
count
,
UInt
(
2
))
XCTAssertTrue
(
msg
.
mapInt32Enum
.
valueForKey
(
600
,
value
:
&
intValue
))
XCTAssertEqual
(
intValue
,
Message2_Enum
.
Bar
.
rawValue
)
...
...
@@ -173,8 +173,8 @@ class GPBBridgeTests: XCTestCase {
XCTAssertEqual
(
msg
.
repeatedInt32Array
.
valueAtIndex
(
0
),
Int32
(
300
))
XCTAssertEqual
(
msg
.
repeatedInt32Array
.
valueAtIndex
(
1
),
Int32
(
301
))
XCTAssertEqual
(
msg
.
repeatedStringArray
.
count
,
Int
(
2
))
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
0
)
as
!
String
,
"mno"
)
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
1
)
as
!
String
,
"pqr"
)
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
0
)
as
?
String
,
"mno"
)
XCTAssertEqual
(
msg
.
repeatedStringArray
.
objectAtIndex
(
1
)
as
?
String
,
"pqr"
)
XCTAssertEqual
(
msg
.
repeatedInt64Array
.
count
,
UInt
(
0
))
XCTAssertEqual
(
msg
.
repeatedEnumArray
.
count
,
UInt
(
2
))
XCTAssertEqual
(
msg
.
repeatedEnumArray
.
valueAtIndex
(
0
),
Message3_Enum
.
Bar
.
rawValue
)
...
...
@@ -189,8 +189,8 @@ class GPBBridgeTests: XCTestCase {
XCTAssertTrue
(
msg
.
mapInt32Int32
.
valueForKey
(
501
,
value
:
&
intValue
))
XCTAssertEqual
(
intValue
,
Int32
(
401
))
XCTAssertEqual
(
msg
.
mapStringString
.
count
,
Int
(
2
))
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"bar"
)
as
!
String
,
"foo"
)
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"xyz"
)
as
!
String
,
"abc"
)
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"bar"
)
as
?
String
,
"foo"
)
XCTAssertEqual
(
msg
.
mapStringString
.
objectForKey
(
"xyz"
)
as
?
String
,
"abc"
)
XCTAssertEqual
(
msg
.
mapInt32Enum
.
count
,
UInt
(
2
))
XCTAssertTrue
(
msg
.
mapInt32Enum
.
valueForKey
(
600
,
value
:
&
intValue
))
XCTAssertEqual
(
intValue
,
Message2_Enum
.
Bar
.
rawValue
)
...
...
objectivec/Tests/UnitTests-Info.plist
View file @
99a6a95c
...
...
@@ -7,7 +7,7 @@
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
{
EXECUTABLE_NAME
}<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.yourcompany.$
{
PRODUCT_NAME:identifier
}
<
/string
>
<
string
>
$
(
PRODUCT_BUNDLE_IDENTIFIER
)
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
...
...
objectivec/Tests/iOSTestHarness/Info.plist
View file @
99a6a95c
...
...
@@ -9,7 +9,7 @@
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
{
EXECUTABLE_NAME
}<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.google.$
{
PRODUCT_NAME:rfc1034identifier
}
<
/string
>
<
string
>
$
(
PRODUCT_BUNDLE_IDENTIFIER
)
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
...
...
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