Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

xcode - iOS - Custom Configuration - "No such module"

In my ios app, I'm trying to distinguish environments, to make web api calls to the proper environment (Development, Staging and Production).

For that I have created a configuration.plist file with the different endpoints for each environment and:

  • Duplicated the Debug Configuration and called it Development Build.
  • Created a new Scheme called Development (duplicated the Debug scheme) and in the Info tab (Run section) chose the Development Build configuration.

When I run in Debug mode, everything runs normally.

I'm using cocoa pods.

If I select Development scheme, I get a No such module 'JazzHands'

If I edit the Development scheme to use the Debug build, it works fine.

So I must be missing some thing for this not to work.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

For those running into this question, try pod install this will generate some .xcconfig files with your configuration name. Clean your build folder and build again.

This worked for me with Cocoapods 1.0


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...