Failed to emit precompiled header to merge header

I downloaded the project from GitHub, then downloaded the following files, some of which are written by OBJ-C, and I used the bridge header.

pod ‘SnapKit’
pod ‘MJRefresh’
pod ‘Alamofire’
pod ‘Kingfisher’
pod ‘MBProgressHUD’
pod ‘pop’
pod ‘EVReflection’
pod ‘StreamingKit’
pod ‘iCarousel’
pod ‘ReflectionView’

When I run the project with Xcode 9.0 beta 2, but unfortunately the error log looks like this:

Error: Failed to issue the precompiled header '/var/folders/kd/4gh0_kxx3jx4thjb_sssmmcw0000gn/T/EvoRadio-Bridging-Header-97bd5f.pch' to join the header '/ Users / ringo / Downloads / EvoRadio-master / EvoRadio Resources -Bridging-Header.h '

I have googled but no such problem. Does the error mean that he needs a PCH file? This is my header configuration .pch: enter image description here He cannot solve it.

How to do it?

+24
14

(Xcode9 beta 6) , cocoa pods .
PodFile:

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
pod 'EncryptedCoreData', :git => 'https://github.com/project-imas/encrypted-core-data.git'

target 'Root' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Root

  target 'RootTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'RootUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

:
1 $(inherited) non-recursive Search Path -> Header Search Paths
2 ${PODS_ROOT} recursive Search Path -> User Header Search Paths
.

, SO:
1
2

+17

, , Objective-C, Swift myproject-Swift.h. , Swift Swift .m.

@class MySwiftClass ...

typedef NS_ENUM(NSInteger, MySwiftEnumType)

MySwiftEnumType - . Swift enum MyClass.MySwiftEnumType MySwiftEnumType

+16

, , Podfile , .

, .

, ProjectName.xcodeproj, ProjectName.xcworkspace. xcworkspace presto, !

+13

, .

pod install . .

+9

. .

> > > "" >

" ":

Find implicit dependencies

.

+5

, " " . , .

#import <UIKit/UIKit.h>

+2

" " " ".

+2

, Xcode pods/frameworks, .

: Xcode9.2 - 9.3, cocoapods - , .
Podfile, "use_frameworks!". , . , 'use_frameworks! iOS 8. , , :

  1. pod deintegrate/, pod deintegrate cocoa pod deintegrate
  2. Xcode . ( )
  3. pod install .

  4. use_frameworks Podfile, 1-3, , .

+1

Podfile.lock pod install .

+1

, , :

- Xcode 9 - .

platform :ios, '11.0'

+1

, , , .

10.0, - 11.0.

Scr1

scr2

+1

, , A, YourProjectName-Bridging-Header.h

  • - (), A
0

( ).

0

, Xcode. , , pod Xcode 10. :

platform :ios, '9.0'

target 'EvoRadio' do

pod ‘SnapKit
pod ‘MJRefresh
pod ‘Alamofire
pod ‘Kingfisher
pod ‘MBProgressHUD
pod ‘pop
pod ‘EVReflection
pod ‘StreamingKit
pod ‘iCarousel
pod ‘ReflectionView

target 'EvoRadio2ndtarget'   # add your second target

end

, Xcode 9 , Xcode 10 . .

0

Source: https://habr.com/ru/post/1689637/


All Articles