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
e2decfa3
Commit
e2decfa3
authored
Oct 26, 2016
by
Ben Asher
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6025 from chrisballinger/c-pod-fix
Redefine FOUNDATION_EXPORT for C-only pods in umbrella header
parents
eae884fb
4f5059e5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
104 additions
and
1 deletion
+104
-1
CHANGELOG.md
CHANGELOG.md
+7
-0
header.rb
lib/cocoapods/generator/header.rb
+8
-0
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
header_spec.rb
spec/unit/generator/header_spec.rb
+24
-0
prefix_header_spec.rb
spec/unit/generator/prefix_header_spec.rb
+56
-0
pod_target_installer_spec.rb
...xcode/pods_project_generator/pod_target_installer_spec.rb
+8
-0
No files found.
CHANGELOG.md
View file @
e2decfa3
...
@@ -29,6 +29,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -29,6 +29,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Ben Asher
](
https://github.com/benasher44
)
[
Ben Asher
](
https://github.com/benasher44
)
[
#6064
](
https://github.com/CocoaPods/CocoaPods/issues/6064
)
[
#6064
](
https://github.com/CocoaPods/CocoaPods/issues/6064
)
*
Redefine FOUNDATION_EXPORT for C-only pods in umbrella header
[
Chris Ballinger
](
https://github.com/chrisballinger
)
[
#6024
](
https://github.com/CocoaPods/CocoaPods/issues/6024
)
## 1.1.1 (2016-10-20)
## 1.1.1 (2016-10-20)
...
@@ -67,6 +71,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -67,6 +71,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
*
None.
*
None.
*
Redefine FOUNDATION_EXPORT for C-only pods in umbrella header
[
Chris Ballinger
](
https://github.com/chrisballinger
)
[
#6024
](
https://github.com/CocoaPods/CocoaPods/issues/6024
)
## 1.1.0.rc.3 (2016-10-11)
## 1.1.0.rc.3 (2016-10-11)
...
...
lib/cocoapods/generator/header.rb
View file @
e2decfa3
...
@@ -42,6 +42,14 @@ module Pod
...
@@ -42,6 +42,14 @@ module Pod
result
=
''
result
=
''
result
<<
"#ifdef __OBJC__
\n
"
result
<<
"#ifdef __OBJC__
\n
"
result
<<
generate_platform_import_header
result
<<
generate_platform_import_header
result
<<
"#else
\n
"
result
<<
"#ifndef FOUNDATION_EXPORT
\n
"
result
<<
"#if defined(__cplusplus)
\n
"
result
<<
"#define FOUNDATION_EXPORT extern
\"
C
\"\n
"
result
<<
"#else
\n
"
result
<<
"#define FOUNDATION_EXPORT extern
\n
"
result
<<
"#endif
\n
"
result
<<
"#endif
\n
"
result
<<
"#endif
\n
"
result
<<
"#endif
\n
"
result
<<
"
\n
"
result
<<
"
\n
"
...
...
cocoapods-integration-specs
@
b840101a
Subproject commit
a2470cb751b032bf9617332b3d1589e8daa27c24
Subproject commit
b840101a6992392409e4419089bf3e55b25b3402
spec/unit/generator/header_spec.rb
View file @
e2decfa3
...
@@ -11,6 +11,14 @@ module Pod
...
@@ -11,6 +11,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import "header.h"
#import "header.h"
...
@@ -22,6 +30,14 @@ module Pod
...
@@ -22,6 +30,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
...
@@ -55,6 +71,14 @@ module Pod
...
@@ -55,6 +71,14 @@ module Pod
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
EOS
EOS
...
...
spec/unit/generator/prefix_header_spec.rb
View file @
e2decfa3
...
@@ -14,6 +14,14 @@ module Pod
...
@@ -14,6 +14,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import "BlocksKit.h"
#import "BlocksKit.h"
...
@@ -30,6 +38,14 @@ module Pod
...
@@ -30,6 +38,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import "BlocksKit.h"
#import "BlocksKit.h"
...
@@ -51,6 +67,14 @@ module Pod
...
@@ -51,6 +67,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import "BlocksKit.h"
#import "BlocksKit.h"
...
@@ -61,6 +85,14 @@ module Pod
...
@@ -61,6 +85,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import <BananaTree/BananaTree.h>
#import <BananaTree/BananaTree.h>
...
@@ -80,6 +112,14 @@ module Pod
...
@@ -80,6 +112,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import <BananaTree/BananaTree.h>
#import <BananaTree/BananaTree.h>
...
@@ -91,6 +131,14 @@ module Pod
...
@@ -91,6 +131,14 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import "header.h"
#import "header.h"
...
@@ -104,6 +152,14 @@ module Pod
...
@@ -104,6 +152,14 @@ module Pod
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import <BananaTree/BananaTree.h>
#import <BananaTree/BananaTree.h>
...
...
spec/unit/installer/xcode/pods_project_generator/pod_target_installer_spec.rb
View file @
e2decfa3
...
@@ -291,6 +291,14 @@ module Pod
...
@@ -291,6 +291,14 @@ module Pod
expected
=
<<-
EOS
.
strip_heredoc
expected
=
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#endif
#import "BlocksKit.h"
#import "BlocksKit.h"
...
...
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