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
6ed0141c
Unverified
Commit
6ed0141c
authored
Jun 06, 2018
by
Adam Cozzette
Committed by
GitHub
Jun 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4730 from acozzette/xcode
Cherry-picked XCode 10 fixes into 3.6.x branch
parents
7e199b9e
a3f31bf0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
full_mac_build.sh
objectivec/DevTools/full_mac_build.sh
+1
-2
GPBArray.m
objectivec/GPBArray.m
+2
-2
GPBDescriptor.m
objectivec/GPBDescriptor.m
+3
-3
GPBDictionary.m
objectivec/GPBDictionary.m
+2
-2
README.md
objectivec/README.md
+1
-1
No files found.
objectivec/DevTools/full_mac_build.sh
View file @
6ed0141c
...
@@ -244,8 +244,7 @@ if [[ "${DO_XCODE_IOS_TESTS}" == "yes" ]] ; then
...
@@ -244,8 +244,7 @@ if [[ "${DO_XCODE_IOS_TESTS}" == "yes" ]] ; then
exit
10
exit
10
;;
;;
7.
*
)
7.
*
)
echo
"ERROR: The unittests include Swift code that is now Swift 3.0."
1>&2
echo
"ERROR: Xcode 7.x no longer supported for building, please use 8.0 or higher."
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
exit
11
;;
;;
8.0
*
)
8.0
*
)
...
...
objectivec/GPBArray.m
View file @
6ed0141c
...
@@ -2537,12 +2537,12 @@ static BOOL ArrayDefault_IsValidValue(int32_t value) {
...
@@ -2537,12 +2537,12 @@ static BOOL ArrayDefault_IsValidValue(int32_t value) {
return
[
_array
countByEnumeratingWithState
:
state
objects
:
buffer
count
:
len
];
return
[
_array
countByEnumeratingWithState
:
state
objects
:
buffer
count
:
len
];
}
}
-
(
void
)
enumerateObjectsUsingBlock
:
(
void
(
^
)(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
))
block
{
-
(
void
)
enumerateObjectsUsingBlock
:
(
void
(
NS_NOESCAPE
^
)(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
))
block
{
[
_array
enumerateObjectsUsingBlock
:
block
];
[
_array
enumerateObjectsUsingBlock
:
block
];
}
}
-
(
void
)
enumerateObjectsWithOptions
:
(
NSEnumerationOptions
)
opts
-
(
void
)
enumerateObjectsWithOptions
:
(
NSEnumerationOptions
)
opts
usingBlock
:
(
void
(
^
)(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
))
block
{
usingBlock
:
(
void
(
NS_NOESCAPE
^
)(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
))
block
{
[
_array
enumerateObjectsWithOptions
:
opts
usingBlock
:
block
];
[
_array
enumerateObjectsWithOptions
:
opts
usingBlock
:
block
];
}
}
...
...
objectivec/GPBDescriptor.m
View file @
6ed0141c
...
@@ -411,7 +411,7 @@ static NSArray *NewFieldsArrayForHasIndex(int hasIndex,
...
@@ -411,7 +411,7 @@ static NSArray *NewFieldsArrayForHasIndex(int hasIndex,
}
}
-
(
NSString
*
)
name
{
-
(
NSString
*
)
name
{
return
@
(
name_
);
return
(
NSString
*
_Nonnull
)
@
(
name_
);
}
}
-
(
GPBFieldDescriptor
*
)
fieldWithNumber
:
(
uint32_t
)
fieldNumber
{
-
(
GPBFieldDescriptor
*
)
fieldWithNumber
:
(
uint32_t
)
fieldNumber
{
...
@@ -582,7 +582,7 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
...
@@ -582,7 +582,7 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
}
}
-
(
NSString
*
)
name
{
-
(
NSString
*
)
name
{
return
@
(
description_
->
name
);
return
(
NSString
*
_Nonnull
)
@
(
description_
->
name
);
}
}
-
(
BOOL
)
isRequired
{
-
(
BOOL
)
isRequired
{
...
@@ -998,7 +998,7 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
...
@@ -998,7 +998,7 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
}
}
-
(
NSString
*
)
singletonName
{
-
(
NSString
*
)
singletonName
{
return
@
(
description_
->
singletonName
);
return
(
NSString
*
_Nonnull
)
@
(
description_
->
singletonName
);
}
}
-
(
const
char
*
)
singletonNameC
{
-
(
const
char
*
)
singletonNameC
{
...
...
objectivec/GPBDictionary.m
View file @
6ed0141c
...
@@ -12102,14 +12102,14 @@ void GPBDictionaryReadEntry(id mapDictionary,
...
@@ -12102,14 +12102,14 @@ void GPBDictionaryReadEntry(id mapDictionary,
}
}
}
}
-
(
void
)
enumerateKeysAndObjectsUsingBlock
:
(
void
(
^
)(
id
key
,
-
(
void
)
enumerateKeysAndObjectsUsingBlock
:
(
void
(
NS_NOESCAPE
^
)(
id
key
,
id
obj
,
id
obj
,
BOOL
*
stop
))
block
{
BOOL
*
stop
))
block
{
[
_dictionary
enumerateKeysAndObjectsUsingBlock
:
block
];
[
_dictionary
enumerateKeysAndObjectsUsingBlock
:
block
];
}
}
-
(
void
)
enumerateKeysAndObjectsWithOptions
:
(
NSEnumerationOptions
)
opts
-
(
void
)
enumerateKeysAndObjectsWithOptions
:
(
NSEnumerationOptions
)
opts
usingBlock
:
(
void
(
^
)(
id
key
,
usingBlock
:
(
void
(
NS_NOESCAPE
^
)(
id
key
,
id
obj
,
id
obj
,
BOOL
*
stop
))
block
{
BOOL
*
stop
))
block
{
[
_dictionary
enumerateKeysAndObjectsWithOptions
:
opts
usingBlock
:
block
];
[
_dictionary
enumerateKeysAndObjectsWithOptions
:
opts
usingBlock
:
block
];
...
...
objectivec/README.md
View file @
6ed0141c
...
@@ -13,7 +13,7 @@ Requirements
...
@@ -13,7 +13,7 @@ Requirements
The Objective C implementation requires:
The Objective C implementation requires:
-
Objective C 2.0 Runtime (32bit & 64bit iOS, 64bit OS X).
-
Objective C 2.0 Runtime (32bit & 64bit iOS, 64bit OS X).
-
Xcode
7
.0 (or later).
-
Xcode
8
.0 (or later).
-
The library code does
*not*
use ARC (for performance reasons), but it all can
-
The library code does
*not*
use ARC (for performance reasons), but it all can
be called from ARC code.
be called from ARC code.
...
...
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