This is example to use with gRPC Swift for iOS.
- Update submodules
$ git submodule update --init
- Build packages
$ cd grpc-swift
$ make
- Xcode 9.3
$ git submodule add [email protected]:KyoheiG3/grpc-swift.git
$ cd grpc-swift
$ make project
$ vim .gitignore
#/SwiftGRPC.xcodeproj
$ vim SwiftGRPC.xcodeproj/GeneratedModuleMap/BoringSSL/module.modulemap
umbrella "../../../../grpc-swift/Sources/BoringSSL/include"
This is not required. However, if you don't change, others may get build error.
$ open ./SwiftGRPC.xcodeproj
SDKROOT = iphoneos
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"
IPHONEOS_DEPLOYMENT_TARGET = 9.0
before | after |
---|---|
![]() |
![]() |
HEADER_SEARCH_PATHS = $(SRCROOT)/grpc-swift/Sources/CgRPC/include
ENABLE_BITCODE = NO
If you don't change, Cannot export ipa.
If your project is added some configurations, SwiftGRPC
also should be added same configurations.